|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
java.util.zip.InflaterInputStream
java.util.zip.ZipInputStream
public class ZipInputStream
ZipInputStream is an input stream for reading zip files.
ZipEntry,
ZipFile| Field Summary | |
|---|---|
(package private) ZipEntry |
currentEntry
|
(package private) static int |
DEFLATED
|
(package private) static int |
STORED
|
(package private) static int |
ZIPDataDescriptorFlag
|
(package private) static int |
ZIPLocalHeaderVersionNeeded
|
| Fields inherited from class java.util.zip.InflaterInputStream |
|---|
buf, BUF_SIZE, closed, eof, inf, len, nativeEndBufSize |
| Fields inherited from class java.io.FilterInputStream |
|---|
in |
| Fields inherited from interface java.util.zip.ZipConstants |
|---|
CENATT, CENATX, CENCOM, CENCRC, CENDSK, CENEXT, CENFLG, CENHDR, CENHOW, CENLEN, CENNAM, CENOFF, CENSIG, CENSIZ, CENTIM, CENVEM, CENVER, ENDCOM, ENDHDR, ENDOFF, ENDSIG, ENDSIZ, ENDSUB, ENDTOT, EXTCRC, EXTHDR, EXTLEN, EXTSIG, EXTSIZ, LOCCRC, LOCEXT, LOCFLG, LOCHDR, LOCHOW, LOCLEN, LOCNAM, LOCSIG, LOCSIZ, LOCTIM, LOCVER |
| Constructor Summary | |
|---|---|
ZipInputStream(InputStream stream)
Constructs a new ZipInputStream on the specified input stream. |
|
| Method Summary | |
|---|---|
int |
available()
Returns 1 if the EOF has been reached, otherwise returns 0. |
void |
close()
Closes this ZipInputStream. |
void |
closeEntry()
Closes the current zip entry and positions to read the next entry. |
protected ZipEntry |
createZipEntry(String name)
|
ZipEntry |
getNextEntry()
Reads the next zip entry from this ZipInputStream. |
int |
read(byte[] buffer,
int start,
int length)
Reads up to the specified number of uncompressed bytes into the buffer starting at the offset. |
long |
skip(long value)
Skips up to the specified number of bytes in the current zip entry. |
| Methods inherited from class java.util.zip.InflaterInputStream |
|---|
fill, mark, markSupported, read, reset |
| Methods inherited from class java.io.FilterInputStream |
|---|
read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final int DEFLATED
static final int STORED
static final int ZIPDataDescriptorFlag
static final int ZIPLocalHeaderVersionNeeded
ZipEntry currentEntry
| Constructor Detail |
|---|
public ZipInputStream(InputStream stream)
stream - the input stream| Method Detail |
|---|
public void close()
throws IOException
close in interface Closeableclose in class InflaterInputStreamIOException - If an error occurs closing the stream
public void closeEntry()
throws IOException
IOException
public ZipEntry getNextEntry()
throws IOException
IOException
public int read(byte[] buffer,
int start,
int length)
throws IOException
read in class InflaterInputStreambuffer - a byte arraystart - the starting offset into the bufferlength - the number of bytes to read
IOException - If an error occurs reading
public long skip(long value)
throws IOException
skip in class InflaterInputStreamvalue - the number of bytes to skip
IOException - If an error occurs skipping
public int available()
throws IOException
available in class InflaterInputStreamIOException - If an error occursprotected ZipEntry createZipEntry(String name)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||