public static Thread consumeProcessOutputStream ( Process self , Appendable output ) { Thread thread = new Thread ( new TextDumper ( 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 Appendable . A new Thread is started so this method will return immediately .