public class ZipUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ZipUtil.FileContentProcessor |
Modifier and Type | Method and Description |
---|---|
static boolean |
addDirToZipRecursively(java.util.zip.ZipOutputStream outputStream,
java.io.File jarFile,
java.io.File dir,
java.lang.String relativePath,
java.io.FileFilter fileFilter,
java.util.Set<java.lang.String> writtenItemRelativePaths) |
static boolean |
addFileOrDirRecursively(java.util.zip.ZipOutputStream jarOutputStream,
java.io.File jarFile,
java.io.File file,
java.lang.String relativePath,
java.io.FileFilter fileFilter,
java.util.Set<java.lang.String> writtenItemRelativePaths) |
static boolean |
addFileToZip(java.util.zip.ZipOutputStream zos,
java.io.File file,
java.lang.String relativeName,
java.util.Set<? super java.lang.String> writtenItemRelativePaths,
java.io.FileFilter fileFilter) |
static boolean |
addFileToZip(java.util.zip.ZipOutputStream zos,
java.io.File file,
java.lang.String relativeName,
java.util.Set<? super java.lang.String> writtenItemRelativePaths,
java.io.FileFilter fileFilter,
ZipUtil.FileContentProcessor contentProcessor,
boolean isDir) |
static void |
compressFile(java.io.File srcFile,
java.io.File zipFile) |
static void |
extract(java.io.File file,
java.io.File outputDir,
java.io.FilenameFilter filter) |
static void |
extract(java.io.File file,
java.io.File outputDir,
java.io.FilenameFilter filter,
boolean overwrite) |
static void |
extract(java.util.zip.ZipFile zip,
java.io.File outputDir,
java.io.FilenameFilter filter)
Deprecated.
use
Decompressor.Zip |
static void |
extractEntry(java.util.zip.ZipEntry entry,
java.io.InputStream inputStream,
java.io.File outputDir,
boolean overwrite)
Deprecated.
use
Decompressor.Zip |
static boolean |
isZipContainsFolder(java.io.File zip) |
public static boolean addFileToZip(java.util.zip.ZipOutputStream zos, java.io.File file, java.lang.String relativeName, java.util.Set<? super java.lang.String> writtenItemRelativePaths, java.io.FileFilter fileFilter) throws java.io.IOException
java.io.IOException
public static boolean addFileToZip(java.util.zip.ZipOutputStream zos, java.io.File file, java.lang.String relativeName, java.util.Set<? super java.lang.String> writtenItemRelativePaths, java.io.FileFilter fileFilter, ZipUtil.FileContentProcessor contentProcessor, boolean isDir) throws java.io.IOException
java.io.IOException
public static boolean addFileOrDirRecursively(java.util.zip.ZipOutputStream jarOutputStream, java.io.File jarFile, java.io.File file, java.lang.String relativePath, java.io.FileFilter fileFilter, java.util.Set<java.lang.String> writtenItemRelativePaths) throws java.io.IOException
java.io.IOException
public static boolean addDirToZipRecursively(java.util.zip.ZipOutputStream outputStream, java.io.File jarFile, java.io.File dir, java.lang.String relativePath, java.io.FileFilter fileFilter, java.util.Set<java.lang.String> writtenItemRelativePaths) throws java.io.IOException
java.io.IOException
public static void extract(java.io.File file, java.io.File outputDir, java.io.FilenameFilter filter) throws java.io.IOException
java.io.IOException
Decompressor.Zip
public static void extract(java.io.File file, java.io.File outputDir, java.io.FilenameFilter filter, boolean overwrite) throws java.io.IOException
java.io.IOException
Decompressor.Zip
public static boolean isZipContainsFolder(java.io.File zip) throws java.io.IOException
java.io.IOException
public static void compressFile(java.io.File srcFile, java.io.File zipFile) throws java.io.IOException
java.io.IOException
@Deprecated public static void extract(java.util.zip.ZipFile zip, java.io.File outputDir, java.io.FilenameFilter filter) throws java.io.IOException
Decompressor.Zip
java.io.IOException
@Deprecated public static void extractEntry(java.util.zip.ZipEntry entry, java.io.InputStream inputStream, java.io.File outputDir, boolean overwrite) throws java.io.IOException
Decompressor.Zip
java.io.IOException