Name
FilterInputStream
Synopsis
This
class provides method definitions required to filter data obtained
from the InputStream
specified when the
FilterInputStream
is created. It must be
subclassed to perform some sort of filtering operation and cannot be
instantiated directly. See the subclasses
BufferedInputStream
,
DataInputStream
, and
PushbackInputStream
.
Figure 9-21. java.io.FilterInputStream
public class FilterInputStream extends InputStream { // Protected Constructors protected FilterInputStream(InputStream in); // Public Methods Overriding InputStream public int available( ) throws IOException; public void close( ) throws IOException; public void mark(int readlimit); synchronized public boolean markSupported( ); public int read( ) throws IOException; public int read(byte[ ] b) throws IOException; public int read(byte[ ] b, int off, int len) throws IOException; public void reset( ) throws IOException; synchronized public long skip(long n) throws IOException; // Protected Instance Fields protected volatile InputStream in; }
Subclasses
BufferedInputStream
,
DataInputStream
,
LineNumberInputStream
,
PushbackInputStream
,
java.security.DigestInputStream
,
java.util.zip.CheckedInputStream
,
java.util.zip.InflaterInputStream
,
javax.crypto.CipherInputStream
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.