FilterInputStream (Java SE 25 & JDK 25)
- All Implemented Interfaces:
Closeable, AutoCloseable
- Direct Known Subclasses:
BufferedInputStream, CheckedInputStream, CipherInputStream, DataInputStream, DeflaterInputStream, DigestInputStream, InflaterInputStream, LineNumberInputStream, ProgressMonitorInputStream, PushbackInputStream
-
Field Summary
Fields
The input stream to be filtered.
-
Constructor Summary
Constructors
protectedCreates a
FilterInputStreamby assigning the argumentinto the fieldthis.inso as to remember it for later use. -
Method Summary
intReturns 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.
voidclose()Closes this input stream and releases any system resources associated with the stream.
voidmark(int readlimit) Marks the current position in this input stream.
booleanTests if this input stream supports the
markandresetmethods.intread()Reads the next byte of data from the input stream.
intread(byte[] b) Reads up to
b.lengthbytes of data from this input stream into an array of bytes.intread(byte[] b, int off, int len) Reads up to
lenbytes of data from this input stream into an array of bytes.voidreset()Repositions this stream to the position at the time the
markmethod was last called on this input stream.longskip(long n) Skips over and discards
nbytes of data from the input stream.
-
Field Details
-
in
-
-
Constructor Details
-
FilterInputStream
-
-
Method Details
-
read
-
read
-
read
-
skip
-
available
-
close
-
mark
-
reset
-
markSupported
-