RFR: 8310426: (ch) Channels.newInputStream transferTo cleanup

Alan Bateman alanb at openjdk.org
Tue Jun 20 17:52:04 UTC 2023


ChannelInputStream, the InputStream returned by Channels.newInputStream, implements the transferTo method with support for the cross product of many interesting underlying channels. It's getting a bit too unwieldy and can be simplified by introducing a FileChannelInputStream to wrap a FileChannel.

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

Commit messages:
 - Fix typo in comment
 - Update
 - Initial commit

Changes: https://git.openjdk.org/jdk/pull/14566/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14566&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8310426
  Stats: 336 lines in 8 files changed: 232 ins; 43 del; 61 mod
  Patch: https://git.openjdk.org/jdk/pull/14566.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/14566/head:pull/14566

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


More information about the nio-dev mailing list