Reader, there's a
matching read from the underlying input stream. Therefore it's a good idea to
wrap a BufferedReader around each Reader whose
read() operations are expensive, such as a FileReader.
For example,
A subclass of
java.io.Reader that you chain to another Reader class to
buffer characters.
Constructor can specify buffer size
public BufferedReader(Reader in, int bufferSize)
public BufferedReader(Reader in)
Also notable for its readLine() method
that allows you to read text a line at a time.
public String readLine() throws IOException
readLine() is still evil!
BufferedReaders do support marking and resetting, at least
up to the
length of the buffer.