java.io.FilterInputStream
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 inputstream.
Subclasses of FilterInputStream may further override some of these methods and may also provide additional methods and fields.
Some methods of FilterInputStream class
available(): This method returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking the next caller of a method for this input stream.
close(): This method closes this input stream and releases any system resources associated with the stream.
mark(int): This method marks the current position in this input stream.
markSupported(): This method tests if this input stream supports the mark and reset methods.
read(): This method reads the next byte of data from this input stream.
read(byte[]): This method reads up to b.length bytes of data from this input stream into an array of bytes.
read(byte[], int, int): This method reads up to len bytes of data from this input stream into an array of bytes.
reset(): This method repositions this stream to the position at the time the mark method was last called on this input stream.
skip(long): This method skips over and discards n bytes of data from the input stream.
No comments:
Post a Comment