public class FilterInputStream extends InputStream
Known Direct Subclasses
Known Indirect Subclasses

A FilterInputStream contains some other input stream, which it uses as its basic source of data, possibly transforming the data along the way or providing additional functionality. The class FilterInputStream itself simply overrides all methods of InputStream with versions that pass all requests to the contained input stream. Subclasses of FilterInputStream may further override some of these methods and may also provide additional methods and fields.

Field Summary

protected InputStream in The input stream to be filtered.

Protected Constructor Summary

FilterInputStream(InputStream in)
Creates a FilterInputStream by assigning the argument in to the field so as to remember it for later use.

Public Method Summary

Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
Closes this input stream and releases any system resources associated with the stream.
synchronized void
mark(int readlimit)
Marks the current position in this input stream.
Tests if this input stream supports the mark and reset methods.
Reads the next byte of data from this input stream.
read(byte[] b, int off, int len)
Reads up to len bytes of data from this input stream into an array of bytes.
read(byte[] b)
Reads up to byte.length bytes of data from this input stream into an array of bytes.
synchronized void
Repositions this stream to the position at the time the mark method was last called on this input stream.
skip(long n)
Skips over and discards n bytes of data from the input stream.

Inherited Method Summary