Fri Oct 24, 2008 9:41 pm
Is BufferedReader.ready() true, false or undefined, when the end of
the stream is reached (and the next read() would return -1)?
Fri Oct 24, 2008 9:42 pm
BufferedReader.ready() only return true or false. According to javadoc, it
will return true
if the buffer is not empty or the underlying character stream is ready. So, If
the end of stream is reached, the underlying charatecter stream must not be
ready and depends to the buffer.
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.