Interface ToolResult


  • public interface ToolResult
    Returns the result of a command line utility.
    • Method Detail

      • getReturnCode

        int getReturnCode()
        Returns the return code of the command. See the command line help for the individual commands to see how to interpret the return codes.
        Returns:
        The return code of the command execution.
      • getStdoutAsString

        java.lang.String getStdoutAsString()
        Returns what the command wrote to stdout as a String.
        Returns:
        What the command wrote to stdout as a String.
      • getStdoutAsReader

        java.io.BufferedReader getStdoutAsReader()
        Returns what the command wrote to stdout as a BufferedReader.
        Returns:
        What the command wrote to stdout as a BufferedReader.
      • getStderrAsString

        java.lang.String getStderrAsString()
        Returns what the command wrote to stderr as a String.
        Returns:
        What the command wrote to stderr as a String.
      • getStderrAsReader

        java.io.BufferedReader getStderrAsReader()
        Returns what the command wrote to stderr as a BufferedReader.
        Returns:
        What the command wrote to stderr as a BufferedReader.