| Package | Description |
|---|---|
| org.zeroturnaround.zip |
| Modifier and Type | Method and Description |
|---|---|
Zips |
Zips.nameMapper(NameMapper nameMapper) |
static void |
ZipUtil.pack(File sourceDir,
File targetZip,
NameMapper mapper)
Compresses the given directory and all its sub-directories into a ZIP file.
|
static void |
ZipUtil.pack(File sourceDir,
File targetZip,
NameMapper mapper,
int compressionLevel)
Compresses the given directory and all its sub-directories into a ZIP file.
|
static void |
ZipUtil.pack(File sourceDir,
OutputStream os,
NameMapper mapper)
Compresses the given directory and all of its sub-directories into the passed in
stream.
|
static void |
ZipUtil.pack(File sourceDir,
OutputStream os,
NameMapper mapper,
int compressionLevel)
Compresses the given directory and all of its sub-directories into the passed in
stream.
|
static void |
ZipUtil.packEntries(File[] filesToPack,
File destZipFile,
NameMapper mapper)
Compresses the given files into a ZIP file.
|
static void |
ZipUtil.packEntries(File[] filesToPack,
File destZipFile,
NameMapper mapper,
int compressionLevel)
Compresses the given files into a ZIP file.
|
static void |
ZipUtil.packEntry(File fileToPack,
File destZipFile,
NameMapper mapper)
Compresses the given file into a ZIP file.
|
static void |
ZipUtil.unpack(File zip,
File outputDir,
NameMapper mapper)
Unpacks a ZIP file to the given directory using a specific Charset
for the input file.
|
static void |
ZipUtil.unpack(File zip,
File outputDir,
NameMapper mapper,
Charset charset)
Unpacks a ZIP file to the given directory.
|
static void |
ZipUtil.unpack(InputStream is,
File outputDir,
NameMapper mapper)
Unpacks a ZIP stream to the given directory.
|
static void |
ZipUtil.unpack(InputStream is,
File outputDir,
NameMapper mapper,
Charset charset)
Unpacks a ZIP stream to the given directory.
|
static void |
ZipUtil.unwrap(File zip,
File outputDir,
NameMapper mapper)
Unwraps a ZIP file to the given directory shaving of root dir.
|
static void |
ZipUtil.unwrap(InputStream is,
File outputDir,
NameMapper mapper)
Unwraps a ZIP file to the given directory shaving of root dir.
|
| Constructor and Description |
|---|
BackslashUnpacker(File outputDir,
NameMapper mapper) |
Copyright © 2017 ZeroTurnaround. All rights reserved.