RFR [9] Add blocking bulk read to java.io.InputStream

Roger Riggs Roger.Riggs at Oracle.com
Thu May 7 14:36:37 UTC 2015

Hi Alan,

I recognize that this utility function can't compensate for failings of 
the  underlying
stream.  But I thought async close was the one common action that did 
work on streams
to avoid indefinite blocking.

It would be more appropriate to say that the behavior depends on the 
underlying stream
and not propagate the under specification.


On 5/7/2015 10:29 AM, Alan Bateman wrote:
> On 07/05/2015 15:20, Roger Riggs wrote:
>> Hi Chris,
>> Is it really impossible to specify at least that closing the stream 
>> will terminate the read?
> The wording that Chris has is wording that we use elsewhere too. In 
> general then the InputStream could be to anything and no guarantee 
> that all InputStream implementations could preempt the read.
> -Alan.

More information about the core-libs-dev mailing list