RFR: 8255878: FilterInputStream is missing implementations of Java 9 InputStream methods

Brian Burkhalter bpb at openjdk.java.net
Fri Sep 3 22:37:18 UTC 2021


This request proposes to modify `java.io.FilterInputStream` to override `readAllBytes()`, `readNBytes(int)`, `skipNBytes(long)`, and `transferTo(OutputStream)` in order to leverage any performance advantage that the wrapped stream might have over the `java.io.InputStream` implementations of these methods.

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

Commit messages:
 - 8255878: FilterInputStream is missing implementations of Java 9 InputStream methods

Changes: https://git.openjdk.java.net/jdk/pull/5367/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5367&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8255878
  Stats: 41 lines in 1 file changed: 40 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5367.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5367/head:pull/5367

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


More information about the core-libs-dev mailing list