java.lang.Object | ||||
↳ | java.io.InputStream | |||
↳ | java.io.FilterInputStream | |||
↳ | java.util.zip.InflaterInputStream | |||
↳ | java.util.zip.ZipInputStream |
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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.zip.InflaterInputStream
| |||||||||||
From class
java.io.FilterInputStream
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new ZIP input stream.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns 0 after EOF has reached for the current entry data,
otherwise always return 1.
| |||||||||||
Closes this input stream and releases any system resources associated
with the stream.
| |||||||||||
Closes the current ZIP entry and positions the stream for reading the
next entry.
| |||||||||||
Reads the next ZIP file entry and positions the stream at the
beginning of the entry data.
| |||||||||||
Reads from the current ZIP entry into an array of bytes.
| |||||||||||
Skips specified number of bytes in the current ZIP entry.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new
ZipEntry object for the specified
entry name. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.zip.InflaterInputStream
| |||||||||||
From class
java.io.FilterInputStream
| |||||||||||
From class
java.io.InputStream
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
|
Creates a new ZIP input stream.
in | the actual input stream |
---|
Returns 0 after EOF has reached for the current entry data, otherwise always return 1.
Programs should not count on this method to return the actual number of bytes that could be read without blocking.
IOException | if an I/O error occurs. |
---|
Closes this input stream and releases any system resources associated with the stream.
IOException | if an I/O error has occurred |
---|
Closes the current ZIP entry and positions the stream for reading the next entry.
ZipException | if a ZIP file error has occurred |
---|---|
IOException | if an I/O error has occurred |
Reads the next ZIP file entry and positions the stream at the beginning of the entry data.
ZipException | if a ZIP file error has occurred |
---|---|
IOException | if an I/O error has occurred |
Reads from the current ZIP entry into an array of bytes.
If len
is not zero, the method
blocks until some input is available; otherwise, no
bytes are read and 0
is returned.
b | the buffer into which the data is read |
---|---|
off | the start offset in the destination array b |
len | the maximum number of bytes read |
NullPointerException | If b is null . |
---|---|
IndexOutOfBoundsException | If off is negative,
len is negative, or len is greater than
b.length - off |
ZipException | if a ZIP file error has occurred |
IOException | if an I/O error has occurred |
Skips specified number of bytes in the current ZIP entry.
n | the number of bytes to skip |
---|
ZipException | if a ZIP file error has occurred |
---|---|
IOException | if an I/O error has occurred |
IllegalArgumentException | if n < 0 |
Creates a new ZipEntry
object for the specified
entry name.
name | the ZIP file entry name |
---|