Class SystemUtilities.ProcessResult

java.lang.Object
com.cedarsoftware.util.SystemUtilities.ProcessResult
Enclosing class:
SystemUtilities

public static class SystemUtilities.ProcessResult extends Object
Captures the results of executing an operating system process.
  • Constructor Details

    • ProcessResult

      public ProcessResult(int exitCode, String output, String error)
      Create a new result.
      Parameters:
      exitCode - the exit value returned by the process
      output - text captured from standard out
      error - text captured from standard error
  • Method Details

    • getExitCode

      public int getExitCode()
      Returns:
      the exit value of the process
    • getOutput

      public String getOutput()
      Returns:
      the contents of the standard output stream
    • getError

      public String getError()
      Returns:
      the contents of the standard error stream