Mega Code Archive

 
Categories / Java Tutorial / File
 

Reader

Reader is an abstract class that represents an input stream for reading characters. You use the Reader class to read text (characters, i.e. human readable data). The two implementation classes of Reader are InputStreamReader and BufferedReader. The Reader class has three read method overloads that are similar to the read methods in InputStream: public int read() public int read (char[] data) public int read (char[] data, int offset, int length) public int read(java.nio.CharBuffer target)