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 , specify both the input stream to read from and an Inflater object to perform the decompression . Once an InflaterInputStream is created, the read( ) and skip( ) methods are the same as those of other input streams. The InflaterInputStream uncompresses raw data. Applications often prefer one of its subclasses, GZIPInputStream or ZipInputStream , that work with compressed data written in the standard gzip and PKZip file formats. Figure 16-142. java.util.zip.InflaterInputStreampublic class InflaterInputStream extends java.io.FilterInputStream { // Public Constructors public InflaterInputStream (java.io.InputStream in ); public InflaterInputStream (java.io.InputStream in , Inflater inf ); public InflaterInputStream (java.io.InputStream in , Inflater inf , int size ); // Public Methods Overriding FilterInputStream 1.2 public int available ( ) throws java.io.IOException; 1.2 public void close ( ) throws java.io.IOException; 5.0 public void mark (int readlimit ); synchronized empty 5.0 public boolean markSupported ( ); constant public int read ( ) throws java.io.IOException; public int read (byte[ ] b , int off , int len ) throws java.io.IOException; 5.0 public void reset ( ) throws java.io.IOException; synchronized public long skip (long n ) throws java.io.IOException; // Protected Instance Methods protected void fill ( ) throws java.io.IOException; // Protected Instance Fields protected byte[ ] buf ; protected Inflater inf ; protected int len ; } SubclassesGZIPInputStream , ZipInputStream |