java.io.BufferedReader (JDK 1.1)
This class applies buffering to a character input stream, thereby improving the efficiency of character input. You create a BufferedReader by specifying some other character input stream that it is to buffer input from. (You can also specify a buffer size at this time, although the default size is usually fine.) Typically you use this sort of buffering when you are using a FileReader or InputStreamReader.
BufferedReader defines the standard set of Reader methods, and also provides a readLine() method that reads a line of text (not including the line-terminators) and returns it as a String.
BufferedReader is the character-stream analog of BufferedInputStream. It also provides a replacement for the deprecated readLine() method of DataInputStream, which did not properly convert bytes into characters.
public classBufferedReaderextends Reader { //Public ConstructorspublicBufferedReader(Readerin, intsz); publicBufferedReader(Readerin); //Public Instance Methodspublic voidclose() throws IOException; //Defines Readerpublic voidmark(intreadAheadLimit) throws IOException; //Overrides Readerpublic booleanmarkSupported(); //Overrides Readerpublic intread() throws IOException; //Overrides Readerpublic intread(char[]cbuf, intoff, intlen) throws IOException; //Defines Readerpublic StringreadLine() throws IOException; public booleanready() throws IOException; //Overrides Readerpublic voidreset() throws IOException; //Overrides Readerpublic longskip(longn) throws IOException; //Overrides Reader}
Hierarchy:
Object->Reader->BufferedReader
Extended By:
LineNumberReader