public final class Zip4jExtensions
extends java.lang.Object
Zip4jExtensions.| Modifier and Type | Method and Description |
|---|---|
static void |
extract(net.lingala.zip4j.core.ZipFile zipFile4j,
java.io.File destination,
java.lang.String password)
Extract.
|
static void |
zipFiles(net.lingala.zip4j.core.ZipFile zipFile4j,
java.io.File... toAdd)
Adds a file or several files to the given zip file with the parameters
Zip4jConstants.COMP_DEFLATE for the compression method and
Zip4jConstants.DEFLATE_LEVEL_NORMAL as the compression level.
|
static void |
zipFiles(net.lingala.zip4j.core.ZipFile zipFile4j,
int compressionMethod,
int compressionLevel,
java.io.File... toAdd)
Adds a file or several files to the given zip file with the given parameters for the
compression method and the compression level.
|
static void |
zipFiles(net.lingala.zip4j.core.ZipFile zipFile4j,
net.lingala.zip4j.model.ZipParameters parameters,
java.io.File... toAdd)
Adds the given file(s) to the given zip file.
|
static void |
zipFiles(net.lingala.zip4j.core.ZipFile zipFile4j,
net.lingala.zip4j.model.ZipParameters parameters,
java.util.List<java.io.File> toAdd)
Adds the given file(s) to the given zip file.
|
public static void extract(net.lingala.zip4j.core.ZipFile zipFile4j,
java.io.File destination,
java.lang.String password)
throws net.lingala.zip4j.exception.ZipException
zipFile4j - the zip file4jdestination - the destinationpassword - the passwordnet.lingala.zip4j.exception.ZipException - the zip exceptionpublic static void zipFiles(net.lingala.zip4j.core.ZipFile zipFile4j,
java.io.File... toAdd)
throws net.lingala.zip4j.exception.ZipException
zipFile4j - the zip file4jtoAdd - the to addnet.lingala.zip4j.exception.ZipException - the zip exceptionpublic static void zipFiles(net.lingala.zip4j.core.ZipFile zipFile4j,
int compressionMethod,
int compressionLevel,
java.io.File... toAdd)
throws net.lingala.zip4j.exception.ZipException
zipFile4j - the zip file4jcompressionMethod - The compression methodcompressionLevel - the compression leveltoAdd - the to addnet.lingala.zip4j.exception.ZipException - the zip exceptionpublic static void zipFiles(net.lingala.zip4j.core.ZipFile zipFile4j,
net.lingala.zip4j.model.ZipParameters parameters,
java.io.File... toAdd)
throws net.lingala.zip4j.exception.ZipException
zipFile4j - the zip file4jparameters - the parameterstoAdd - the list with the files to add in the zip filenet.lingala.zip4j.exception.ZipException - the zip exceptionpublic static void zipFiles(net.lingala.zip4j.core.ZipFile zipFile4j,
net.lingala.zip4j.model.ZipParameters parameters,
java.util.List<java.io.File> toAdd)
throws net.lingala.zip4j.exception.ZipException
zipFile4j - the zip file4jparameters - the parameterstoAdd - the list with the files to add in the zip filenet.lingala.zip4j.exception.ZipException - the zip exception