Class OSTask

  • All Implemented Interfaces:
    Runnable

    public class OSTask
    extends Thread
    Execute OS Task
    Author:
    Low Heng Sin
    • Constructor Detail

      • OSTask

        public OSTask​(String cmd)
        Create Process with cmd
        Parameters:
        cmd - o/s command
    • Method Detail

      • run

        public void run()
        Execute it
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • getOut

        public StringBuffer getOut()
        Get Out Info
        Returns:
        StringBuffer
      • getErr

        public StringBuffer getErr()
        Get Err Info
        Returns:
        StringBuffer
      • getInStream

        public OutputStream getInStream()
        Get The process input stream - i.e. we output to it
        Returns:
        OutputStream