Reader, there's a matching read from the underlying input stream. Therefore it's a good idea to wrap a
read()operations are expensive, such as a
FileReader. For example,
A subclass of
java.io.Reader that you chain to another
Reader class to
Constructor can specify buffer size
public BufferedReader(Reader in, int bufferSize) public BufferedReader(Reader in)
Also notable for its
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.