Class ProcessHelper

  • public class ProcessHelper
    extends java.lang.Object
    A convenience class that creates and executes operating system Processes.
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ProcessIO runProcess​(java.lang.String[] cmdArray)  
      • Methods inherited from class java.lang.Object

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

      • ProcessHelper

        public ProcessHelper()
    • Method Detail

      • runProcess

        public ProcessIO runProcess​(java.lang.String[] cmdArray)
        cmdArray - A String array containing a program to run and its arguments.
        A composite result containing whatever the requested process may have written to stdout and/or stderr. The result will also hold an exit code of either 0 to indicate a successful exit, or 1 to indicate the process produced and error.