Interface CommandInput
- All Superinterfaces:
Callable<CommandInput>
- All Known Subinterfaces:
PipeCommandInput
- All Known Implementing Classes:
PipeCommandInputImpl
Reads the standard output of the executed command.
- Since:
- 1.11
- Author:
- Erwin Mueller, erwin.mueller@deventm.org
-
Method Summary
Modifier and TypeMethodDescriptioncall()Writes to the standard input to the connected stream.clone()Clones the standard input writer.voidsetOutput(OutputStream stream) Sets the stream that is connected to the standard input of the executed command.
-
Method Details
-
setOutput
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
Writes to the standard input to the connected stream.- Specified by:
callin interfaceCallable<CommandInput>- Throws:
Exception
-