Class ProcessResult

  • All Implemented Interfaces:
    org.refcodes.mixin.ResultAccessor<String>


    public class ProcessResult
    extends Object
    implements org.refcodes.mixin.ResultAccessor<String>
    Retrieves the Result of the given process as String.
    • Constructor Detail

      • ProcessResult

        public ProcessResult​(Process aProcess)
                      throws IOException
        Constructs a ProcessResult instance which will synchronously return the process' result via getResult() (and toString() accordingly).
        Parameters:
        aProcess - The Process from which to retrieve the result.
        Throws:
        IOException - Thrown in case there were problems retrieving the result. If possible, the error stream of the process is captured in the exception's message.
    • Method Detail

      • getResult

        public String getResult​()
        Specified by:
        getResult in interface org.refcodes.mixin.ResultAccessor<String>