Describes the data stream redirections for a process including exit checks.
Similar to BaseExecSpec except to getCommandLine / setCommandLine.
| Type | Name and description |
|---|---|
OutputStream |
errorOutput |
boolean |
ignoreExitValue |
InputStream |
standardInput |
OutputStream |
standardOutput |
| Type Params | Return Type | Name and description |
|---|---|---|
|
OutputStream |
getErrorOutput()Returns the output stream to consume standard error from the process executing the command. |
|
InputStream |
getStandardInput()Returns the standard input stream for the process executing the command. |
|
OutputStream |
getStandardOutput()Returns the output stream to consume standard output from the process executing the command. |
|
boolean |
isIgnoreExitValue()Tells whether a non-zero exit value is ignored, or an exception thrown. |
|
void |
setErrorOutput(OutputStream outputStream)Sets the output stream to consume standard error from the process executing the command. |
|
void |
setIgnoreExitValue(boolean ignoreExitValue)Sets whether a non-zero exit value is ignored, or an exception thrown. |
|
void |
setStandardInput(InputStream inputStream)Sets the standard input stream for the process executing the command. |
|
void |
setStandardOutput(OutputStream outputStream)Sets the output stream to consume standard output from the process executing the command. |
Returns the output stream to consume standard error from the process executing the command.
Returns the standard input stream for the process executing the command. The stream is closed after the process completes.
Returns the output stream to consume standard output from the process executing the command.
Tells whether a non-zero exit value is ignored, or an exception thrown.
Sets the output stream to consume standard error from the process executing the command.
outputStream - The output stream.Sets whether a non-zero exit value is ignored, or an exception thrown.
ignoreExitValue - - whether a non-zero exit value is ignored, or an exception thrownSets the standard input stream for the process executing the command.
inputStream - The standard input stream for the process. Must not be null.Sets the output stream to consume standard output from the process executing the command.
outputStream - The standard output stream for the process. Must not be null.