java.util.zip.InflaterInputStream (JDK 1.1)
This class is a subclass of java.io.FilterInputStream; it reads a specified stream of compressed input data (typically one that was written with DeflaterOutputStream or a subclass) and "filters" that data by uncompressing ("inflating") it. To create an InflaterInputStream, you must specify the input stream it is to read from, and also an Inflater object that is to perform the uncompresssion. Once an InflaterInputStream is created, the read() and skip() methods are the same as those of other input streams.
Note that the InflaterInputStream uncompresses raw data. Applications often prefer one of its subclasses, GZIPInputStream or ZipInputStream, which work with compressed data written in the standard gzip and PKZip file formats.
public classInflaterInputStreamextends FilterInputStream { //Public ConstructorspublicInflaterInputStream(InputStreamin, Inflaterinf, intsize); publicInflaterInputStream(InputStreamin, Inflaterinf); publicInflaterInputStream(InputStreamin); //Protected Instance Variablesprotected byte[]buf; protected Inflaterinf; protected intlen; //Public Instance Methodspublic intread() throws IOException; //Overrides FilterInputStreampublic intread(byte[]b, intoff, intlen) throws IOException; //Overrides FilterInputStreampublic longskip(longn) throws IOException; //Overrides FilterInputStream//Protected Instance Methodsprotected voidfill() throws IOException; }
Hierarchy:
Object->InputStream->FilterInputStream->InflaterInputStream
Extended By:
GZIPInputStream, ZipInputStream