Class
|
Function
|
Constructor Arguments
|
How to use it
|
ByteArray-InputStream
|
Allows a buffer in memory to be used as an InputStream.
|
The buffer from which to extract the bytes.
|
As a source of data: Connect it to a FilterInputStream object to provide a useful interface.
|
StringBuffer-InputStream
|
Converts a String into an InputStream.
|
A String. The underlying implementation actually uses a StringBuffer.
|
As a source of data: Connect it to a FilterInputStream object to provide a useful interface.
|
File-InputStream
|
For reading information from a file.
|
A String representing the file name, or a File or FileDescriptor object.
|
As a source of data: Connect it to a FilterInputStream object to provide a useful interface.
|
Piped-InputStream
|
Produces the data that’s being written to the associated PipedOutput-Stream. Implements the “piping” concept.
|
PipedOutputStream
|
As a source of data in multithreading: Connect it to a FilterInputStream object to provide a useful interface.
|
Sequence-InputStream
|
Converts two or more InputStream objects into a single InputStream.
|
Two InputStream objects or an Enumeration for a container of InputStream objects.
|
As a source of data: Connect it to a FilterInputStream object to provide a useful interface.
|
Filter-InputStream
|
Abstract class that is an interface for decorators that provide useful functionality to the other InputStream classes. See Table 12-3.
|
See Table 12-3.
|
See Table 12-3.
|