Read what others wrote to standard out
<p>I want to read what gets written to stdout in a Java process that spawns other processes using inheritIO. <strong>I cannot use redirectOut</strong> as I have no control over the code that starts the process!. Also note that <strong>resetting System.setOut doesn't work</strong> in this case.
Also I don't have access to the Process object.</p>

<p>Example:</p>

<pre><code>new ProcessBuilder().command('/bin/echo', 'FooBar').inheritIO.start
// read 'FooBar' from standard out
</code></pre>