|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.schmant.support.io.ProcessResult
public class ProcessResult
An object of this class represents the result from a running process. It
contains the process' exit code and optionally its output to stdout and
stderr if the used ProcessOutputStrategy
supports that.
Constructor Summary | |
---|---|
ProcessResult(int exitCode,
String stdout,
String stderr)
|
Method Summary | |
---|---|
int |
getExitCode()
Get the exit code from the process. |
String |
getStderrOutput()
Get the process' output to stderr, if that was collected by the ProcessOutputStrategy used. |
String |
getStdoutOutput()
Get the process' output to stdout, if that was collected by the ProcessOutputStrategy used. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProcessResult(int exitCode, String stdout, String stderr)
Method Detail |
---|
public int getExitCode()
public String getStdoutOutput()
ProcessOutputStrategy
used.
null
if that is not
supported by the ProcessOutputStrategy
.public String getStderrOutput()
ProcessOutputStrategy
used.
null
if that is not
supported by the ProcessOutputStrategy
.public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |