public class ZipInputStream extends InputStream
| Constructor and Description |
|---|
ZipInputStream(InputStream inputStream) |
ZipInputStream(InputStream inputStream,
char[] password) |
ZipInputStream(InputStream inputStream,
char[] password,
Charset charset) |
ZipInputStream(InputStream inputStream,
char[] password,
Zip4jConfig zip4jConfig) |
ZipInputStream(InputStream inputStream,
Charset charset) |
ZipInputStream(InputStream inputStream,
PasswordCallback passwordCallback) |
ZipInputStream(InputStream inputStream,
PasswordCallback passwordCallback,
Charset charset) |
ZipInputStream(InputStream inputStream,
PasswordCallback passwordCallback,
Zip4jConfig zip4jConfig) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
LocalFileHeader |
getNextEntry() |
LocalFileHeader |
getNextEntry(FileHeader fileHeader,
boolean readUntilEndOfCurrentEntryIfOpen) |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
setPassword(char[] password)
Sets the password for the inputstream.
|
mark, markSupported, reset, skippublic ZipInputStream(InputStream inputStream)
public ZipInputStream(InputStream inputStream, Charset charset)
public ZipInputStream(InputStream inputStream, char[] password)
public ZipInputStream(InputStream inputStream, PasswordCallback passwordCallback)
public ZipInputStream(InputStream inputStream, char[] password, Charset charset)
public ZipInputStream(InputStream inputStream, PasswordCallback passwordCallback, Charset charset)
public ZipInputStream(InputStream inputStream, char[] password, Zip4jConfig zip4jConfig)
public ZipInputStream(InputStream inputStream, PasswordCallback passwordCallback, Zip4jConfig zip4jConfig)
public LocalFileHeader getNextEntry() throws IOException
IOExceptionpublic LocalFileHeader getNextEntry(FileHeader fileHeader, boolean readUntilEndOfCurrentEntryIfOpen) throws IOException
IOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void setPassword(char[] password)
password - Password to be used for reading of entries from the zip input streamCopyright © 2021. All rights reserved.