public class ExecResult extends Object implements Serializable
ExecCommand execution.| Constructor and Description |
|---|
ExecResult(ExecCommand command,
InputStream stdout,
InputStream stderr,
int exitValue)
Creates a
ExecResult instance. |
| Modifier and Type | Method and Description |
|---|---|
ExecCommand |
getCommand()
The executed command, that produced this result.
|
int |
getExitValue()
The exit value of the command executable.
|
InputStream |
getStderr()
Returns the content of the standart error output (stderr) of the executed
command or
null, if no output was produced in the stderr. |
InputStream |
getStdout()
Returns the content of the standart output (stdout) of the executed
command or
null, if no output was produced in the stdout. |
public ExecResult(ExecCommand command, InputStream stdout, InputStream stderr, int exitValue)
ExecResult instance.command - A not-null reference of ExecCommand, that produced
the result.stdout - InputStream with the stdout of the command executable. If
there was no stdout, the value must be null.stderr - InputStream with the stderr of the command executable. If
there was no stderr, the value must be null.exitValue - the exit value of the command executable.public ExecCommand getCommand()
null.public int getExitValue()
public InputStream getStdout()
null, if no output was produced in the stdout.public InputStream getStderr()
null, if no output was produced in the stderr.Apache Camel