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

Alan Bateman Alan.Bateman at oracle.com
Thu May 7 14:46:10 UTC 2015


On 07/05/2015 15:36, Roger Riggs wrote:
> 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.
No, not generally for InputStreams so it's very possible that the close 
might block until the read completes.

-Alan



More information about the core-libs-dev mailing list