code: public static Thread consumeProcessErrorStream(Process self, OutputStream err) {
          Thread thread = new Thread(new ByteDumper(self.getErrorStream(), err));
          thread.start();
          return thread;
      }
docs: 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.
  
  @param self a Process
  @param err an OutputStream to capture the process stderr
  @return the Thread
  @since 1.5.2