public class PipeCommandInputImpl extends Object implements PipeCommandInput
| Modifier and Type | Method and Description |
|---|---|
CommandInput |
call()
Writes to the standard input to the connected stream.
|
CommandInput |
clone()
Clones the standard input writer.
|
static CommandInput |
createPipeCommandInput(InputStream stream) |
void |
setBufferSize(int size)
Sets the buffer size.
|
void |
setOutput(OutputStream stream)
Sets the stream that is connected to the standard input of the executed
command.
|
void |
setPipe(InputStream stream)
Sets the stream that is read and piped to the standard input of the
command.
|
String |
toString() |
public static CommandInput createPipeCommandInput(InputStream stream)
public void setOutput(OutputStream stream)
CommandInputsetOutput in interface CommandInputstream - the OutputStream.public void setPipe(InputStream stream)
PipeCommandInputsetPipe in interface PipeCommandInputstream - the InputStream.public void setBufferSize(int size)
PipeCommandInputsetBufferSize in interface PipeCommandInputsize - the size in bytes.public CommandInput clone()
CommandInputclone in interface CommandInputclone in class ObjectCommandInput.public CommandInput call() throws Exception
CommandInputcall in interface CommandInputcall in interface Callable<CommandInput>ExceptionCopyright © 2014–2016. All rights reserved.