RFR: 8191441: (Process) add Readers and Writer access to java.lang.Process streams

Rémi Forax forax at openjdk.java.net
Thu May 20 20:15:26 UTC 2021


On Thu, 20 May 2021 19:57:22 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> Methods are added to java.lang.Process to read and write characters and lines from and to a spawned Process.
> The Charset used to encode and decode characters to bytes can be specified or use the
> operating system native encoding as is available from the "native.encoding" system property.

I've added the same comment on the bug itself.
I don't think that using PrintWriter is a good idea here given that a PrintWriter shallow the IOException

-------------

PR: https://git.openjdk.java.net/jdk/pull/4134


More information about the core-libs-dev mailing list