2 ms·
NIO FileChannels have a transferTo() method[1]. I expect they only added it once they found a good enough reason (zero-copy). The standardization process moves
by alt_ 15y ago
NIO FileChannels have a transferTo() method[1]. I expect they only added it once they found a good enough reason (zero-copy). The standardization process moves so slow that convenience functions are better served by third-party libraries.
[1] http://docs.oracle.com/javase/1.4.2/docs/api/java/nio/channels/FileChannel.html#transferTo(long,%20long,%20java.nio.channels.WritableByteChannel) http://docs.oracle.com/javase/1.4.2/docs/api/java/nio/channe...