Package com.cedarsoftware.util
Class SystemUtilities.ProcessResult
java.lang.Object
com.cedarsoftware.util.SystemUtilities.ProcessResult
- Enclosing class:
- SystemUtilities
Captures the results of executing an operating system process.
-
Constructor Summary
ConstructorsConstructorDescriptionProcessResult(int exitCode, String output, String error) Create a new result. -
Method Summary
-
Constructor Details
-
ProcessResult
Create a new result.- Parameters:
exitCode- the exit value returned by the processoutput- text captured from standard outerror- text captured from standard error
-
-
Method Details
-
getExitCode
public int getExitCode()- Returns:
- the exit value of the process
-
getOutput
- Returns:
- the contents of the standard output stream
-
getError
- Returns:
- the contents of the standard error stream
-