Interface CommandInput
-
- All Superinterfaces:
Callable<CommandInput>
- All Known Subinterfaces:
PipeCommandInput
- All Known Implementing Classes:
PipeCommandInputImpl
public interface CommandInput extends Callable<CommandInput>
Reads the standard output of the executed command.- Since:
- 1.11
- Author:
- Erwin Mueller, erwin.mueller@deventm.org
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommandInputcall()Writes to the standard input to the connected stream.CommandInputclone()Clones the standard input writer.voidsetOutput(OutputStream stream)Sets the stream that is connected to the standard input of the executed command.
-
-
-
Method Detail
-
setOutput
void setOutput(OutputStream stream)
Sets the stream that is connected to the standard input of the executed command.- Parameters:
stream- theOutputStream.
-
clone
CommandInput clone()
Clones the standard input writer. The cloned writer have the same connected output stream.- Returns:
- the cloned
CommandInput.
-
call
CommandInput call() throws Exception
Writes to the standard input to the connected stream.- Specified by:
callin interfaceCallable<CommandInput>- Throws:
Exception
-
-