public final class Zip4jUtils extends Object
| Constructor and Description |
|---|
Zip4jUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
extract(net.lingala.zip4j.core.ZipFile zipFile4j,
File destination,
String password)
Extract.
|
static void |
zipFiles(net.lingala.zip4j.core.ZipFile zipFile4j,
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,
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,
File... toAdd)
Adds a file or several files to the given zip file.
|
public static void extract(net.lingala.zip4j.core.ZipFile zipFile4j,
File destination,
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,
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,
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,
File... toAdd)
throws net.lingala.zip4j.exception.ZipException
zipFile4j - the zip file4jparameters - the parameterstoAdd - the to addnet.lingala.zip4j.exception.ZipException - the zip exceptionCopyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.