public class ZipUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ZipUtil.ProcessFileInZip
Find a certain file inside a zipFile and get it as InputStream.
|
| Constructor and Description |
|---|
ZipUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
compress(Path destination,
Collection<File> inputFiles,
Path topPath) |
static Collection<File> |
compressDirectory(Path destination,
Path source,
long maxSize)
Compress latest files up to a source size of maxSize.
|
static Collection<File> |
compressEntireDirectory(Path destination,
Path source) |
static boolean |
getFileInsideZip(String endingPath,
File zipFilePath,
ZipUtil.ProcessFileInZip processor) |
public static Collection<File> compressEntireDirectory(Path destination, Path source)
public static Collection<File> compressDirectory(Path destination, Path source, long maxSize)
public static void compress(Path destination, Collection<File> inputFiles, Path topPath)
public static boolean getFileInsideZip(String endingPath, File zipFilePath, ZipUtil.ProcessFileInZip processor)
Copyright © 2019. All rights reserved.