RFR: 8191441: (Process) add Readers and Writer access to java.lang.Process streams [v3]
Naoto Sato
naoto at openjdk.java.net
Mon May 24 17:13:12 UTC 2021
On Mon, 24 May 2021 00:33:06 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.
>
> Roger Riggs has updated the pull request incrementally with one additional commit since the last revision:
>
> Added throws for NPE, delegated zero-arg methods that use native.encoding to
> the 1-arg method with a charset, added tests for Redirect cases where the streams are null-input or null-output streams.
src/java.base/share/classes/java/lang/Process.java line 292:
> 290:
> 291: /**
> 292: * Returns a {@code BufferedWriter} connected to the normal input of the process the native encoding.
`the native encoding` here seems leftover.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4134
More information about the core-libs-dev
mailing list