title: Read process output to both OutputStream and String
body: <p>I have a pretty basic process:</p>
  
  <pre><code>Process p = 'foo.exe'.execute()
  </code></pre>
  
  <p>It takes a long time to run, so I want to output to an OutputStream while it is running. Pretty easy:</p>
  
  <pre><code>p.consumeProcessOutputStream(System.out)
  p.waitForOrKill(TIMEOUT_IN_MILLIS)
  </code></pre>
  
  <p>But now I would also like the output as a String. How can I get that?</p>