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

Roger Riggs rriggs at openjdk.java.net
Mon May 24 00:33:06 UTC 2021


> 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.

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/4134/files
  - new: https://git.openjdk.java.net/jdk/pull/4134/files/5a4a85d2..7724b82c

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=4134&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=4134&range=01-02

  Stats: 180 lines in 3 files changed: 136 ins; 0 del; 44 mod
  Patch: https://git.openjdk.java.net/jdk/pull/4134.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/4134/head:pull/4134

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


More information about the core-libs-dev mailing list