Class FilterInputStream
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
BufferedInputStream, CheckedInputStream, CipherInputStream, DataInputStream, DeflaterInputStream, DigestInputStream, InflaterInputStream, LineNumberInputStream, ProgressMonitorInputStream, PushbackInputStream
Declaration of FilterInputStream:
public class FilterInputStream
extends InputStream
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.
FilterInputStream class 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.
Constructor Summary of FilterInputStream:
|
Constructor
|
Description
|
|
Protected FilterInputStream(InputStream in)
|
Creates a FilterInputStream by assigning the argument in to the field
this.in so as to remember it for later use.
|
Method Summary of FilterInputStream:
|
Modifier
|
Method
Name
|
Description
|
|
int
|
available()
|
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.
|
|
void
|
close()
|
Closes this input stream and releases any system resources associated
with the stream.
|
|
Void
|
mark(int readlimit)
|
Marks the current position in this input stream.
|
|
Boolean
|
markSupported()
|
Tests if this input stream supports the mark and reset methods.
|
|
Int
|
read()
|
Reads the next byte of data from this input stream.
|
|
int
|
read(byte[] b)
|
Reads up to byte.length bytes of data from this input stream into an
array of bytes.
|
|
int
|
read(byte[] b, int off, int len)
|
Reads up to len bytes of data from this input stream into an array of
bytes.
|
|
Void
|
reset()
|
Repositions this stream to the position at the time the mark method
was last called on this input stream.
|
|
long
|
skip(long n)
|
Skips over and discards n bytes of data from the input stream.
|
Blog Author - Pushkar Khosla,
Software Developer by Profession with 3.0 Yrs of Experience , through this blog i'am sharing my industrial Java Knowledge to entire world. For any question or query any one can comment below or mail me at pushkar.itsitm52@gmail.com.
Software Developer by Profession with 3.0 Yrs of Experience , through this blog i'am sharing my industrial Java Knowledge to entire world. For any question or query any one can comment below or mail me at pushkar.itsitm52@gmail.com.
Java I/O Tutorial

No comments:
Post a Comment