RFR: 8310426: (ch) Channels.newInputStream transferTo cleanup
Brian Burkhalter
bpb at openjdk.org
Tue Jun 20 18:38:03 UTC 2023
On Tue, 20 Jun 2023 15:15:51 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> 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.
test/jdk/java/nio/channels/Channels/TransferTo.java line 52:
> 50: * @build jdk.test.lib.RandomFactory
> 51: * @run testng/othervm/timeout=180 TransferTo
> 52: * @bug 8265891
Add 8310426?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14566#discussion_r1235664534
More information about the nio-dev
mailing list