RFR 9: 8132394 : (process) ProcessBuilder support for a pipeline of processes
Roger.Riggs at Oracle.com
Thu Nov 5 21:56:17 UTC 2015
Please review the new ProcessBuilder.startPipeline API, implementation,
The new method starts a Process for each ProcessBuilder, creating a
processes linked by their standard output and standard input streams.
Each builder can use redirectErrorsream to coalesce error output with
But otherwise standard error streams are not modified.
The API is the same as discussed on the earlier core-libs thread  and
javadoc of ProcessBuilder: only startPipeline is new:
p.s. The PIPE_CHANNEL redirection proposed by Peter Levert is complementary
and still has a bug or two to work out.
More information about the core-libs-dev