Class CommandResult


  • public final class CommandResult
    extends java.lang.Object
    CommandResult represents the result of a command execution.
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandResult​(int code, java.lang.String standardOutput, java.lang.String standardError)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int code()
      Gets the exit code of the command.
      java.lang.String standardError()
      Gets the standard error of the command.
      java.lang.String standardOutput()
      Gets the standard output of the command.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CommandResult

        public CommandResult​(int code,
                             java.lang.String standardOutput,
                             java.lang.String standardError)
    • Method Detail

      • code

        public int code()
        Gets the exit code of the command.
        Returns:
        the exit code
      • standardOutput

        public java.lang.String standardOutput()
        Gets the standard output of the command.
        Returns:
        the standard output
      • standardError

        public java.lang.String standardError()
        Gets the standard error of the command.
        Returns:
        the standard error
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object