FileOutputStream.available() and pipe EOF

Basin Ilya basinilya at
Sat Feb 10 21:15:18 UTC 2018

Hi list.

My question relates to streams returned by

On Linux calling available() after the other side of the pipe was closed
will throw: Stream Closed

This is very handy, because you can distinguish EOF and a pause in

On Windows same Oracle JDK version 1.8.0_161 behaves in a traditional
manner and available() returns 0 in both cases. Will this ever change?

More information about the core-libs-dev mailing list