Package java.io
Class PushbackReader
Description:
This method tells whether this stream is ready to be read.
Example
File file = new File("testFile");
Reader in = new FileReader(file);
PushbackReader pr = new PushbackReader(in, 20);
...
if (pr.ready())
Logger.log("This stream is ready!");
The ready method checks if the stream is ready.