Class OSTask

java.lang.Object
java.lang.Thread
org.adempiere.webui.util.OSTask
All Implemented Interfaces:
Runnable

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

    • OSTask

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

    • run

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

      public StringBuffer getOut()
      Get standard output buffer
      Returns:
      StringBuffer
    • getErr

      public StringBuffer getErr()
      Get error output buffer
      Returns:
      StringBuffer
    • getInStream

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