public class Unzipper extends Object
| Constructor and Description |
|---|
Unzipper()
Instantiates a new unzipper.
|
Unzipper(ZipFile zipFile,
File toDir)
Instantiates a new unzipper.
|
| Modifier and Type | Method and Description |
|---|---|
void |
extractZipEntry(ZipFile zipFile,
ZipEntry target,
File toDirectory)
Extract zip entry.
|
String |
getPassword()
Gets the password.
|
File |
getToDir()
Returns the field
toDir. |
ZipFile |
getZipFile()
Returns the field
zipFile. |
void |
setPassword(String password)
Sets the password.
|
void |
setToDir(File toDir)
Sets the field
toDir. |
void |
setZipFile(ZipFile zipFile)
Sets the field
zipFile. |
void |
unzip()
Unzip.
|
void |
unzip(File zipFile,
File toDir,
String password)
Unzip.
|
void |
unzip(File zipFile,
File toDir,
String password,
Charset charsetName)
Unzip.
|
void |
unzip(ZipFile zipFile,
File toDir)
Unzip.
|
public void extractZipEntry(ZipFile zipFile, ZipEntry target, File toDirectory) throws IOException
zipFile - the zip filetarget - the targettoDirectory - the to directoryIOException - Signals that an I/O exception has occurred.public String getPassword()
public File getToDir()
toDir.toDir.public ZipFile getZipFile()
zipFile.zipFile.public void setPassword(String password)
password - the new passwordpublic void setToDir(File toDir)
toDir.toDir - The toDir to setpublic void setZipFile(ZipFile zipFile)
zipFile.zipFile - The zipFile to setpublic void unzip()
throws IOException
IOException - Signals that an I/O exception has occurred.public void unzip(File zipFile, File toDir, String password) throws IOException
zipFile - the zip filetoDir - the to dirpassword - the passwordIOException - Signals that an I/O exception has occurred.public void unzip(File zipFile, File toDir, String password, Charset charsetName) throws IOException
zipFile - the zip filetoDir - the to dirpassword - the passwordcharsetName - the charset nameIOException - Signals that an I/O exception has occurred.public void unzip(ZipFile zipFile, File toDir) throws IOException
zipFile - the zip filetoDir - the to dirIOException - Signals that an I/O exception has occurred.Copyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.