15.7.1 Interfaces and Classes for Byte-Based Input and Output
abstract classes that declare methods for performing byte-based input and output, respectively.
Pipes are synchronized communication channels between threads. We discuss threads in Chapter 23. Java provides PipedOutputStream (a subclass of
OutputStream) and Piped-
InputStream (a subclass of
InputStream) to establish pipes between two threads in a program. One thread sends data to another by writing to a
PipedOutputStream. The target thread reads information from the pipe via a
A FilterInputStream filters an
InputStream, and a
FilterOutputStream filters an
OutputStream. Filtering means simply that the ...