ZipInputStream

public class ZipInputStream extends InflaterInputStream
Known Direct Subclasses

This class implements an input stream filter for reading files in the ZIP file format. Includes support for both compressed and uncompressed entries.

Constant Summary

int CENATT
int CENATX
int CENCOM
int CENCRC
int CENDSK
int CENEXT
int CENFLG
int CENHDR
int CENHOW
int CENLEN
int CENNAM
int CENOFF
long CENSIG
int CENSIZ
int CENTIM
int CENVEM
int CENVER
int ENDCOM
int ENDHDR
int ENDOFF
long ENDSIG
int ENDSIZ
int ENDSUB
int ENDTOT
int EXTCRC
int EXTHDR
int EXTLEN
long EXTSIG
int EXTSIZ
int LOCCRC
int LOCEXT
int LOCFLG
int LOCHDR
int LOCHOW
int LOCLEN
int LOCNAM
long LOCSIG
int LOCSIZ
int LOCTIM
int LOCVER

Inherited Field Summary

Public Constructor Summary

ZipInputStream(InputStream in)
Creates a new ZIP input stream.
ZipInputStream(InputStream in, Charset charset)
Creates a new ZIP input stream.

Public Method Summary

int
available()
Returns 0 after EOF has reached for the current entry data, otherwise always return 1.
void
close()
Closes this input stream and releases any system resources associated with the stream.
void
closeEntry()
Closes the current ZIP entry and positions the stream for reading the next entry.
ZipEntry
getNextEntry()
Reads the next ZIP file entry and positions the stream at the beginning of the entry data.
int
read(byte[] b, int off, int len)
Reads from the current ZIP entry into an array of bytes.
long
skip(long n)
Skips specified number of bytes in the current ZIP entry.

Protected Method Summary

ZipEntry
createZipEntry(String name)
Creates a new ZipEntry object for the specified entry name.

Inherited Method Summary