code: public static Thread consumeProcessOutputStream(Process self, Appendable output) {
          Thread thread = new Thread(new TextDumper(self.getInputStream(), output));
          thread.start();
          return thread;
      }
docs: 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 Appendable.
  A new Thread is started, so this method will return immediately.
  
  @param self a Process
  @param output an Appendable to capture the process stdout
  @return the Thread
  @since 1.7.5