Filtered I/O

The filtered input and output stream classes provide the capability to filter I/O in a number of useful ways. I/O filters adapt streams to specific program needs. These filters sit between an input stream and an output stream and perform special processing on the bytes they transfer from input to output. You can combine filters to perform a sequence of filtering operations, where one filter acts on the output of another, as shown in Figure 15.4.

Figure 15.4. Combining filters.

The FilterInputStream Class

The FilterInputStream class is an abstract class that is the parent of all filtered input stream classes. The FilterInputStream ...

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.