Interface CommandOutput
- All Superinterfaces:
Callable<CommandOutput>
- All Known Subinterfaces:
LogCommandOutput,PipeCommandOutput
- All Known Implementing Classes:
AbstractLogCommandOutput,AbstractLogCommandOutput.DebugLogCommandOutput,AbstractLogCommandOutput.ErrorLogCommandOutput,AbstractLogCommandOutput.InfoLogCommandOutput,AbstractLogCommandOutput.TraceLogCommandOutput,PipeCommandOutputImpl
Reads the standard output of the executed command.
- Since:
- 1.11
- Author:
- Erwin Mueller, erwin.mueller@deventm.org
-
Method Summary
Modifier and TypeMethodDescriptioncall()Reads the standard output from the connected stream.clone()Clones the standard output reader.voidsetInput(InputStream stream) Sets the stream that is connected to output of the executed command.
-
Method Details
-
setInput
Sets the stream that is connected to output of the executed command.- Parameters:
stream- theInputStream.
-
clone
CommandOutput clone()Clones the standard output reader. The cloned reader have the same connected input stream.- Returns:
- the cloned
CommandOutput.
-
call
Reads the standard output from the connected stream.- Specified by:
callin interfaceCallable<CommandOutput>- Throws:
Exception
-