API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.zip. ZipInputStream View Source
Author(s)
David Connelly
Since
Version
1.43, 07/31/06
Serial
Hierarchy
 Object
      InputStream
          FilterInputStream
              InflaterInputStream
                  ZipInputStream
Implements
 ZipConstants
Subclasses
Description
public class ZipInputStream
  This class implements an input stream filter for reading files in the ZIP file format.
See also:   
Constructors
public ZipInputStream (InputStream in)
  Creates a new ZIP input stream.
Methods
Hide/Show inherited methods
public int available () throws IOException [Overrides InflaterInputStream]
  Returns 0 after EOF has reached for the current entry data, otherwise always return 1.
public void close () throws IOException [Overrides InflaterInputStream]
  Closes this input stream and releases any system resources associated with the stream.
public void closeEntry () throws IOException
  Closes the current ZIP entry and positions the stream for reading the next entry.
protected ZipEntry createZipEntry (String name)
  Creates a new ZipEntry object for the specified entry name.
protected void fill () throws IOException [Inherited From InflaterInputStream]
  Fills input buffer with more data to decompress.
public ZipEntry getNextEntry () throws IOException
  Reads the next ZIP file entry and positions the stream at the beginning of the entry data.
publicsynchronized void mark (int readlimit) [Inherited From InflaterInputStream]
  Marks the current position in this input stream.
public boolean markSupported () [Inherited From InflaterInputStream]
  Tests if this input stream supports the mark and reset methods.
public int read () throws IOException [Inherited From InflaterInputStream] [Specified in InputStream]
  Reads a byte of uncompressed data.
public int read (byte[] b) throws IOException [Inherited From FilterInputStream]
  Reads up to byte.length bytes of data from this input stream into an array of bytes.
public int read (byte[] b, int off, int len) throws IOException [Overrides InflaterInputStream]
  Reads from the current ZIP entry into an array of bytes.
publicsynchronized void reset () throws IOException [Inherited From InflaterInputStream]
  Repositions this stream to the position at the time the mark method was last called on this input stream.
public long skip (long n) throws IOException [Overrides InflaterInputStream]
  Skips specified number of bytes in the current ZIP entry.
Fields
Hide/Show inherited fields
protected byte buf [Inherited From InflaterInputStream]
Input buffer for decompression.
publicfinalstatic int CENATT = "36" [Inherited From ZipConstants]
publicfinalstatic int CENATX = "38" [Inherited From ZipConstants]
publicfinalstatic int CENCOM = "32" [Inherited From ZipConstants]
publicfinalstatic int CENCRC = "16" [Inherited From ZipConstants]
publicfinalstatic int CENDSK = "34" [Inherited From ZipConstants]
publicfinalstatic int CENEXT = "30" [Inherited From ZipConstants]
publicfinalstatic int CENFLG = "8" [Inherited From ZipConstants]
publicfinalstatic int CENHDR = "46" [Inherited From ZipConstants]
publicfinalstatic int CENHOW = "10" [Inherited From ZipConstants]
publicfinalstatic int CENLEN = "24" [Inherited From ZipConstants]
publicfinalstatic int CENNAM = "28" [Inherited From ZipConstants]
publicfinalstatic int CENOFF = "42" [Inherited From ZipConstants]
publicfinalstatic long CENSIG = "33639248" [Inherited From ZipConstants]
publicfinalstatic int CENSIZ = "20" [Inherited From ZipConstants]
publicfinalstatic int CENTIM = "12" [Inherited From ZipConstants]
publicfinalstatic int CENVEM = "4" [Inherited From ZipConstants]
publicfinalstatic int CENVER = "6" [Inherited From ZipConstants]
publicfinalstatic int ENDCOM = "20" [Inherited From ZipConstants]
publicfinalstatic int ENDHDR = "22" [Inherited From ZipConstants]
publicfinalstatic int ENDOFF = "16" [Inherited From ZipConstants]
publicfinalstatic long ENDSIG = "101010256" [Inherited From ZipConstants]
publicfinalstatic int ENDSIZ = "12" [Inherited From ZipConstants]
publicfinalstatic int ENDSUB = "8" [Inherited From ZipConstants]
publicfinalstatic int ENDTOT = "10" [Inherited From ZipConstants]
publicfinalstatic int EXTCRC = "4" [Inherited From ZipConstants]
publicfinalstatic int EXTHDR = "16" [Inherited From ZipConstants]
publicfinalstatic int EXTLEN = "12" [Inherited From ZipConstants]
publicfinalstatic long EXTSIG = "134695760" [Inherited From ZipConstants]
publicfinalstatic int EXTSIZ = "8" [Inherited From ZipConstants]
protectedvolatile InputStream in [Inherited From FilterInputStream]
The input stream to be filtered.
protected Inflater inf [Inherited From InflaterInputStream]
Decompressor for this stream.
protected int len [Inherited From InflaterInputStream]
Length of input buffer.
publicfinalstatic int LOCCRC = "14" [Inherited From ZipConstants]
publicfinalstatic int LOCEXT = "28" [Inherited From ZipConstants]
publicfinalstatic int LOCFLG = "6" [Inherited From ZipConstants]
publicfinalstatic int LOCHDR = "30" [Inherited From ZipConstants]
publicfinalstatic int LOCHOW = "8" [Inherited From ZipConstants]
publicfinalstatic int LOCLEN = "22" [Inherited From ZipConstants]
publicfinalstatic int LOCNAM = "26" [Inherited From ZipConstants]
publicfinalstatic long LOCSIG = "67324752" [Inherited From ZipConstants]
publicfinalstatic int LOCSIZ = "18" [Inherited From ZipConstants]
publicfinalstatic int LOCTIM = "10" [Inherited From ZipConstants]
publicfinalstatic int LOCVER = "4" [Inherited From ZipConstants]
pack-private boolean usesDefaultInflater [Inherited From InflaterInputStream]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar