RFR: 4619075: (ch) newChannel() should return Gathering/ScatteringByteChannel

Brian Burkhalter bpb at openjdk.java.net
Wed Oct 13 16:29:47 UTC 2021


On Wed, 13 Oct 2021 02:04:37 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Modify `Channels.newChannel(InputStream)` and `Channels.newChannel(OutputStream)` to return `ScatteringByteChannel` and `GatheringByteChannel`, respectively.

Unfortunately you are correct; I thought I had tested that. In any case, this PR can either be withdrawn, or the proposal changed to add to `Channels` the methods `newGatheringByteChannel` and `newScatteringByteChannel`.

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

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


More information about the nio-dev mailing list