Class ExecResult


  • public class ExecResult
    extends Object
    A container for the result of a process execution. This comprises an exit code and (if Disposition.MEMORY is elected) the captured contents of the interleaved standard output and error streams.
    Since:
    0.5.0
    Version:
    $Id: ExecResult.java 16154 2012-07-14 16:34:05Z colin $
    Author:
    tlerios@marketcetera.com
    • Field Detail

      • mExitCode

        private int mExitCode
      • mOutput

        private byte[] mOutput
    • Constructor Detail

      • ExecResult

        public ExecResult​(int exitCode,
                          byte[] output)
        Creates a new container for the given exit code and captured output.
        Parameters:
        exitCode - The exit code.
        output - The captured output. It may be null if Disposition.MEMORY is not elected.
    • Method Detail

      • getExitCode

        public int getExitCode()
        Returns the exit code.
        Returns:
        The code.
      • getOutput

        public byte[] getOutput()
        Returns the captured output.
        Returns:
        The output. It may be null if Disposition.MEMORY is not elected.