Class Task

  • All Implemented Interfaces:
    Runnable

    public class Task
    extends Thread
    Execute OS Task
    Version:
    $Id: Task.java,v 1.2 2006/07/30 00:51:05 jjanke Exp $
    Author:
    Jorg Janke
    • Constructor Detail

      • Task

        public Task​(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