Message7212
We wrap with StreamIO, but this wraps with Channels.newChannel(), whose documentation states:
"The resulting channel will not be buffered; it will simply redirect its I/O operations to the given stream. Closing the channel will in turn cause the stream to be closed."
(This is stronger than ReadableByteChannel's general contract, which states that read() "might not fill the buffer, and in fact it might not read any bytes at all.")
Thus, if we pass an InputStream that can return "early" with fewer than the requested bytes (which is allowed by InputStream's read() contract), then the resulting channel from Channels.newChannel() will return "early" too. |
|
Date |
User |
Action |
Args |
2012-06-13 07:33:20 | jeff250 | set | messageid: <1339572800.3.0.488177565409.issue1754@psf.upfronthosting.co.za> |
2012-06-13 07:33:20 | jeff250 | set | recipients:
+ jeff250, fwierzbicki, amak, pjenvey, ssweens |
2012-06-13 07:33:20 | jeff250 | link | issue1754 messages |
2012-06-13 07:33:19 | jeff250 | create | |
|