February 2014
Beginner
1248 pages
62h 25m
English
InputStream and OutputStream are 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 PipedInputStream.
A FilterInputStream filters an InputStream, and a FilterOutputStream filters an OutputStream. Filtering means simply that the ...
Read now
Unlock full access