Buffered Character I/O

Buffered character I/O is supported by the BufferedReader and BufferedWriter classes. These classes are character-based analogs to the BufferedInputStream and BufferedOutputStream classes. In Java 1.1, the readLine() method of the BufferedReader class replaced the readLine() method of the DataInputStream class for reading lines of text from the console, a file, or other character-oriented input streams.

The BufferedWriter class provides the capability to write buffered data to character-based output streams. It adds the newLine() method to the methods that it inherits (and overrides) from the Writer class. The newLine() method enables new line characters to be written in a system-independent manner. Using this method is ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.