public class PipeCommandInput extends Object implements CommandInput
| Modifier and Type | Method and Description |
|---|---|
CommandInput |
call()
Writes to the standard input to the connected stream.
|
PipeCommandInput |
clone()
Clones the standard input writer.
|
static PipeCommandInput |
createPipeCommandInput(InputStream stream) |
static PipeCommandInput |
fromString(com.google.inject.Injector injector,
String string)
Pipes the string content to the standard input of the command.
|
static PipeCommandInput |
fromString(String string)
Pipes the string content to the standard input of the command.
|
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 PipeCommandInput createPipeCommandInput(InputStream stream)
public static PipeCommandInput fromString(String string)
string - the String.PipeCommandInput.public static PipeCommandInput fromString(com.google.inject.Injector injector, String string)
injector - the Guice Injector.string - the String.PipeCommandInput.public void setOutput(OutputStream stream)
CommandInputsetOutput in interface CommandInputstream - the OutputStream.public void setPipe(InputStream stream)
stream - the InputStream.public void setBufferSize(int size)
size - the size in bytes.public PipeCommandInput clone()
CommandInputclone in interface CommandInputclone in class ObjectCommandInput.public CommandInput call() throws Exception
CommandInputcall in interface CommandInputcall in interface Callable<CommandInput>ExceptionCopyright © 2014–2015. All rights reserved.