RFR: 8341666: FileInputStream doesn't support readAllBytes() or readNBytes(int) on pseudo devices [v3]

Brian Burkhalter bpb at openjdk.org
Fri Oct 25 16:35:49 UTC 2024


> Modify `FileInputStream` (FIS) to fall back to the superclass implementations of `readAllBytes()`, `readNBytes(int)`, `skip()`, and `transferTo` when the input source would otherwise fail with "Illegal Seek" in the FIS implementation, such as for the standard input or a named pipe.

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  8341666: Change [cC]anSeek to [iI]sRegularFile

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/21673/files
  - new: https://git.openjdk.org/jdk/pull/21673/files/d6b679d3..0bb34b4d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=21673&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=21673&range=01-02

  Stats: 22 lines in 6 files changed: 0 ins; 3 del; 19 mod
  Patch: https://git.openjdk.org/jdk/pull/21673.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21673/head:pull/21673

PR: https://git.openjdk.org/jdk/pull/21673


More information about the core-libs-dev mailing list