Updating existing JDK code to use InputStream.transferTo()

Pavel Rappo pavel.rappo at oracle.com
Wed May 13 22:30:28 UTC 2015


> So then our transferTo() implementation should be like this?
> 
> while ((read = this.read(buffer, 0, TRANSFER_BUFFER_SIZE)) > -1) {

Isn't it the same as we have now? :) If you mean "> 0", then we should probably
wait for someone with both IO and NIO expertise to have a look at this.


More information about the core-libs-dev mailing list