net.lingala.zip4j.io
Class ZipInputStream
java.lang.Object
java.io.InputStream
net.lingala.zip4j.io.ZipInputStream
- All Implemented Interfaces:
- Closeable
public class ZipInputStream
- extends InputStream
Method Summary |
int |
available()
|
void |
close()
Closes the input stream and releases any resources. |
void |
close(boolean skipCRCCheck)
Closes the input stream and releases any resources. |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
long |
skip(long n)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipInputStream
public ZipInputStream(BaseInputStream is)
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
close
public void close()
throws IOException
- Closes the input stream and releases any resources.
This method also checks for the CRC of the extracted file.
If CRC check has to be skipped use close(boolean skipCRCCheck) method
- Specified by:
close
in interface Closeable
- Overrides:
close
in class InputStream
- Throws:
IOException
close
public void close(boolean skipCRCCheck)
throws IOException
- Closes the input stream and releases any resources.
If skipCRCCheck flag is set to true, this method skips CRC Check
of the extracted file
- Throws:
IOException
available
public int available()
throws IOException
- Overrides:
available
in class InputStream
- Throws:
IOException
skip
public long skip(long n)
throws IOException
- Overrides:
skip
in class InputStream
- Throws:
IOException
Copyright © 2012. All Rights Reserved.