Class ProcessExec


  • public class ProcessExec
    extends java.lang.Object

    ProcessExec class.

    • Constructor Summary

      Constructors 
      Constructor Description
      ProcessExec​(java.io.PrintStream out, java.io.PrintStream err)
      Constructor for ProcessExec.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int exec​(java.lang.String[] cmd)
      exec
      • Methods inherited from class java.lang.Object

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

      • ProcessExec

        public ProcessExec​(java.io.PrintStream out,
                           java.io.PrintStream err)

        Constructor for ProcessExec.

        Parameters:
        out - a PrintStream object.
        err - a PrintStream object.
    • Method Detail

      • exec

        public int exec​(java.lang.String[] cmd)
                 throws java.io.IOException,
                        java.lang.InterruptedException

        exec

        Parameters:
        cmd - an array of String objects.
        Returns:
        a int.
        Throws:
        java.io.IOException - if any.
        java.lang.InterruptedException - if any.