public final class ZipUtils
extends java.lang.Object
Constructor and Description |
---|
ZipUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addFileToZip(java.lang.String path,
java.lang.String srcFile,
java.util.zip.ZipOutputStream zip,
java.lang.String ignore) |
static void |
addFolderToZip(java.lang.String path,
java.lang.String srcFolder,
java.util.zip.ZipOutputStream zip,
java.lang.String ignore) |
static void |
unzipFilesToPath(java.lang.String jarPath,
java.lang.String destinationDir)
Unzip files to path.
|
static void |
zipFile(java.io.File inputFile,
java.io.File outputZip) |
static void |
zipFolder(java.lang.String srcFolder,
java.lang.String destZipFile,
java.lang.String ignore) |
public static void unzipFilesToPath(java.lang.String jarPath, java.lang.String destinationDir) throws java.io.IOException
zipFileName
- the zip file namefileExtractPath
- the file extract pathjava.io.IOException
- Signals that an I/O exception has occurred.public static void zipFile(java.io.File inputFile, java.io.File outputZip)
public static void zipFolder(java.lang.String srcFolder, java.lang.String destZipFile, java.lang.String ignore) throws java.lang.Exception
java.lang.Exception
public static void addFileToZip(java.lang.String path, java.lang.String srcFile, java.util.zip.ZipOutputStream zip, java.lang.String ignore) throws java.lang.Exception
java.lang.Exception
public static void addFolderToZip(java.lang.String path, java.lang.String srcFolder, java.util.zip.ZipOutputStream zip, java.lang.String ignore) throws java.lang.Exception
java.lang.Exception