| Type | Name and description |
|---|---|
net.lingala.zip4j.core.ZipFile |
createZipFile(java.lang.String path)Initiate a ZipFile object |
net.lingala.zip4j.model.ZipParameters |
initZipParameter()Initiate Zip Parameters |
java.lang.String |
unZip(java.lang.String file, java.lang.String password)Unzip an file |
java.lang.String |
zipFile(java.lang.String file)Add file to zip file |
java.lang.String |
zipFolder(java.lang.String path)Add folder to zip file |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Initiate a ZipFile object
path - The path to create the zip fileInitiate Zip Parameters
Unzip an file
file - The full path of the file needs to be unzippedpassword - The password to unzip the file if any. If the zipped file is not encrypted, the password can be nullAdd file to zip file
file - The full path of the file needs to be zippedAdd folder to zip file
path - The path of the folder needs to be zipped