public class ZipsUtil extends Object
Constructor and Description |
---|
ZipsUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
setBufferSize(Size size)
change buffer size (the default is 32 MB)
|
static String |
unZip(String zipFile,
String outputFolder)
unzip all file in zip file to dist folder (outputFolder)
|
static String |
unZip(String zipPath,
String outputFolder,
FileFilter filter)
unzip only file that match with
FileFilter to the dist folder |
static String |
zip(String zipPath,
String inputFolder)
zip all file in input-folder together and save as zipPath
|
static String |
zip(String zipPath,
String inputFolder,
FileFilter filter)
zip some file that match filter in input-folder together and save as zipPath
|
public static void setBufferSize(Size size)
size
- new size (request SizeUnitType.NON_SI
type)public static String unZip(String zipFile, String outputFolder)
zipFile
- input zip fileoutputFolder
- output folderpublic static String unZip(String zipPath, String outputFolder, FileFilter filter)
FileFilter
to the dist folderzipPath
- input zip fileoutputFolder
- output folderfilter
- filter filepublic static String zip(String zipPath, String inputFolder)
zipPath
- path to zip file (no need to create before)inputFolder
- input folderpublic static String zip(String zipPath, String inputFolder, FileFilter filter)
zipPath
- path to zip file (no need to create before)inputFolder
- input folderfilter
- file filterCopyright © 2017. All rights reserved.