| java.util.zip.InflaterInputStream java.util.zip.ZipInputStream
All known Subclasses: java.util.jar.JarInputStream,
Method Summary | |
public int | available() Answers 1 if the EOF has been reached, otherwise returns 0. | public void | close() Closes this ZipInputStream. | public void | closeEntry() Closes the current zip entry and positions to read the next entry. | protected ZipEntry | createZipEntry(String name) | public ZipEntry | getNextEntry() Reads the next zip entry from this ZipInputStream. | public int | read(byte[] buffer, int start, int length) Reads up to the specified number of uncompressed bytes into the buffer
starting at the offset. | public long | skip(long value) Skips up to the specified number of bytes in the current zip entry. |
DEFLATED | final static int DEFLATED(Code) | | |
STORED | final static int STORED(Code) | | |
ZIPDataDescriptorFlag | final static int ZIPDataDescriptorFlag(Code) | | |
ZIPLocalHeaderVersionNeeded | final static int ZIPLocalHeaderVersionNeeded(Code) | | |
ZipInputStream | public ZipInputStream(InputStream stream)(Code) | | Constructs a new ZipInputStream on the specified input stream.
Parameters: stream - the input stream |
available | public int available() throws IOException(Code) | | Answers 1 if the EOF has been reached, otherwise returns 0.
0 after EOF of current entry, 1 otherwise |
closeEntry | public void closeEntry() throws IOException(Code) | | Closes the current zip entry and positions to read the next entry.
throws: IOException - if an IO exception occurs closing the entry |
getNextEntry | public ZipEntry getNextEntry() throws IOException(Code) | | Reads the next zip entry from this ZipInputStream.
the next entry throws: IOException - if an IO exception occurs reading the next entry |
read | public int read(byte[] buffer, int start, int length) throws IOException(Code) | | Reads up to the specified number of uncompressed bytes into the buffer
starting at the offset.
Parameters: buffer - a byte array Parameters: start - the starting offset into the buffer Parameters: length - the number of bytes to read the number of bytes read |
skip | public long skip(long value) throws IOException(Code) | | Skips up to the specified number of bytes in the current zip entry.
Parameters: value - the number of bytes to skip the number of bytes skipped |
|
|