public class PipeCommandOutputImpl extends Object implements PipeCommandOutput
| Modifier and Type | Method and Description |
|---|---|
CommandOutput |
call()
Reads the standard output from the connected stream.
|
CommandOutput |
clone()
Clones the standard output reader.
|
static CommandOutput |
createPipeCommandOutput(OutputStream stream) |
void |
setBufferSize(int size)
Sets the buffer size.
|
void |
setInput(InputStream stream)
Sets the stream that is connected to output of the executed command.
|
void |
setPipe(OutputStream stream)
Sets the stream that is filled with the piped to the output of the
command.
|
String |
toString() |
public static CommandOutput createPipeCommandOutput(OutputStream stream)
public void setInput(InputStream stream)
CommandOutputsetInput in interface CommandOutputstream - the InputStream.public void setPipe(OutputStream stream)
PipeCommandOutputsetPipe in interface PipeCommandOutputstream - the OutputStream.public void setBufferSize(int size)
PipeCommandOutputsetBufferSize in interface PipeCommandOutputsize - the size in bytes.public CommandOutput clone()
CommandOutputclone in interface CommandOutputclone in class ObjectCommandOutput.public CommandOutput call() throws Exception
CommandOutputcall in interface CommandOutputcall in interface Callable<CommandOutput>ExceptionCopyright © 2014–2016. All rights reserved.