public static Thread consumeProcessOutputStream(Process self,OutputStream output){
  Thread thread=new Thread(new ByteDumper(self.getInputStream(),output));
  thread.start();
  return thread;
}

public static Thread consumeProcessOutputStream ( Process self , OutputStream output ) { Thread thread = new Thread ( new ByteDumper ( self . getInputStream ( ) , output ) ) ; thread . start ( ) ; return thread ; }
gets the output stream from a process and reads it to keep the process from blocking due to a full output buffer . the processed stream data is appended to the supplied outputstream . a new thread is started , so this method will return immediately .
