public static Thread consumeProcessErrorStream(Process self,OutputStream err){
  Thread thread=new Thread(new ByteDumper(self.getErrorStream(),err));
  thread.start();
  return thread;
}

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