public final class ZipUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ZipUtils.JarPath |
| Constructor and Description |
|---|
ZipUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
compressFiles(java.io.File[] listFiles,
java.io.File destZipFile)
Deprecated.
use
compressFiles(Path[], Path) instead. |
static void |
compressFiles(java.nio.file.Path[] listFiles,
java.nio.file.Path destZipFile)
Compress files into a .zip file.
|
static void |
decompressTarArchive(java.io.File tarGzFile,
java.io.File destinationDir)
Deprecated.
use
decompressTarArchive(Path, Path) instead. |
static void |
decompressTarArchive(java.nio.file.Path tarGzFile,
java.nio.file.Path destinationDir)
Extract a tar.gz archive
|
static void |
gzipFile(java.nio.file.Path baseFile,
java.nio.file.Path newFile) |
static void |
unzip(java.io.File destinationDir,
java.io.File zipFile)
Deprecated.
use
unzip(Path, Path) instead. |
static void |
unzip(java.io.File destinationDir,
java.lang.String zipPath)
Deprecated.
use
unzip(Path, Path) instead. |
static void |
unzip(java.nio.file.Path destinationDir,
java.nio.file.Path zipFile)
Unzip a .zip file to a folder
|
static void |
unzip(java.lang.String destinationDir,
java.io.File zipFile)
Deprecated.
use
unzip(Path, Path) instead. |
static void |
unzip(java.lang.String destinationDir,
java.lang.String zipPath)
Deprecated.
use
unzip(Path, Path) instead. |
static void |
unzipJar(java.lang.String destinationDir,
java.lang.String jarPath,
java.lang.String... args) |
static void |
unzipJars(ZipUtils.JarPath... jars) |
static void |
unzipJarWithLZMACompat(java.io.File destinationDir,
java.io.File jarFile)
Deprecated.
use
unzipJarWithLZMACompat(Path, Path) instead. |
static void |
unzipJarWithLZMACompat(java.nio.file.Path destinationDir,
java.nio.file.Path jarFile)
Unzip a jar containing lzma files.
|
@Deprecated
public static void decompressTarArchive(java.io.File tarGzFile,
java.io.File destinationDir)
throws java.io.IOException
decompressTarArchive(Path, Path) instead.tarGzFile - the tar.gz archive to extract.destinationDir - directory to extract the archive.java.io.IOException - if an I/O error occurred.public static void decompressTarArchive(java.nio.file.Path tarGzFile,
java.nio.file.Path destinationDir)
throws java.io.IOException
tarGzFile - the tar.gz archive to extract.destinationDir - directory to extract the archive.java.io.IOException - if an I/O error occurred.public static void gzipFile(java.nio.file.Path baseFile,
java.nio.file.Path newFile)
throws java.io.IOException
java.io.IOException@Deprecated
public static void unzipJarWithLZMACompat(java.io.File destinationDir,
java.io.File jarFile)
throws java.io.IOException
unzipJarWithLZMACompat(Path, Path) instead.destinationDir - the destination folder.jarFile - the jar to extract.java.io.IOException - if an I/O error occurred.public static void unzipJarWithLZMACompat(java.nio.file.Path destinationDir,
java.nio.file.Path jarFile)
throws java.io.IOException
destinationDir - the destination folder.jarFile - the jar to extract.java.io.IOException - if an I/O error occurred.@Deprecated
public static void compressFiles(java.io.File[] listFiles,
java.io.File destZipFile)
throws java.io.IOException
compressFiles(Path[], Path) instead.listFiles - files to compress.destZipFile - destination .zip filejava.io.IOException - if an I/O error occurred.public static void compressFiles(java.nio.file.Path[] listFiles,
java.nio.file.Path destZipFile)
throws java.io.IOException
listFiles - files to compress.destZipFile - destination .zip filejava.io.IOException - if an I/O error occurred.@Deprecated
public static void unzip(java.lang.String destinationDir,
java.lang.String zipPath)
throws java.io.IOException
unzip(Path, Path) instead.destinationDir - where the zip will be extracted.zipPath - the zip to extract.java.io.IOException - if an I/O error occurred.@Deprecated
public static void unzip(java.io.File destinationDir,
java.lang.String zipPath)
throws java.io.IOException
unzip(Path, Path) instead.destinationDir - where the zip will be extracted.zipPath - the zip to extract.java.io.IOException - if an I/O error occurred.@Deprecated
public static void unzip(java.lang.String destinationDir,
java.io.File zipFile)
throws java.io.IOException
unzip(Path, Path) instead.destinationDir - where the zip will be extracted.zipFile - the zip to extract.java.io.IOException - if an I/O error occurred.@Deprecated
public static void unzip(java.io.File destinationDir,
java.io.File zipFile)
throws java.io.IOException
unzip(Path, Path) instead.destinationDir - where the zip will be extracted.zipFile - the zip to extract.java.io.IOException - if an I/O error occurred.public static void unzip(java.nio.file.Path destinationDir,
java.nio.file.Path zipFile)
throws java.io.IOException
destinationDir - where the zip will be extracted.zipFile - the zip to extract.java.io.IOException - if an I/O error occurred.public static void unzipJar(java.lang.String destinationDir,
java.lang.String jarPath,
java.lang.String... args)
throws java.io.IOException
java.io.IOExceptionpublic static void unzipJars(ZipUtils.JarPath... jars) throws java.io.IOException
java.io.IOException