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
public interface CommandOutput extends Callable<CommandOutput>
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 CommandOutputcall()Reads the standard output from the connected stream.CommandOutputclone()Clones the standard output reader.voidsetInput(InputStream stream)Sets the stream that is connected to output of the executed command.
-
-
-
Method Detail
-
setInput
void setInput(InputStream stream)
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
CommandOutput call() throws Exception
Reads the standard output from the connected stream.- Specified by:
callin interfaceCallable<CommandOutput>- Throws:
Exception
-
-