Filtered Character I/O

The FilterReader and FilterWriter classes are character-oriented analogs of the FilterInputStream and FilterOutputStream classes. The FilterReader class uses the in variable for input filtering and FilterWriter class uses the out variable for output filtering. Consult the section “Filtered I/O” earlier in this chapter for a description of I/O filtering.

The PushbackReader Class

The PushbackReader class is a subclass of FilterReader that provides the capability to push a character that was previously read back onto the input stream so that it can be read again. You studied the character-oriented analog of the PushbackInputStream class earlier in this chapter.

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.