author: Blankj
blog : http://blankj.com
time : 2016/08/27
desc : utils about zip or jar
| Type Params | Return Type | Name and description |
|---|---|---|
|
static java.util.List<java.lang.String> |
getComments(java.lang.String zipFilePath)Return the files' comment in ZIP file. |
|
static java.util.List<java.lang.String> |
getComments(java.io.File zipFile)Return the files' comment in ZIP file. |
|
static java.util.List<java.lang.String> |
getFilesPath(java.lang.String zipFilePath)Return the files' path in ZIP file. |
|
static java.util.List<java.lang.String> |
getFilesPath(java.io.File zipFile)Return the files' path in ZIP file. |
|
static java.util.List<java.io.File> |
unzipFile(java.lang.String zipFilePath, java.lang.String destDirPath)Unzip the file. |
|
static java.util.List<java.io.File> |
unzipFile(java.io.File zipFile, java.io.File destDir)Unzip the file. |
|
static java.util.List<java.io.File> |
unzipFileByKeyword(java.lang.String zipFilePath, java.lang.String destDirPath, java.lang.String keyword)Unzip the file by keyword. |
|
static java.util.List<java.io.File> |
unzipFileByKeyword(java.io.File zipFile, java.io.File destDir, java.lang.String keyword)Unzip the file by keyword. |
|
static boolean |
zipFile(java.lang.String srcFilePath, java.lang.String zipFilePath)Zip the file. |
|
static boolean |
zipFile(java.lang.String srcFilePath, java.lang.String zipFilePath, java.lang.String comment)Zip the file. |
|
static boolean |
zipFile(java.io.File srcFile, java.io.File zipFile)Zip the file. |
|
static boolean |
zipFile(java.io.File srcFile, java.io.File zipFile, java.lang.String comment)Zip the file. |
|
static boolean |
zipFiles(java.util.Collection<java.lang.String> srcFiles, java.lang.String zipFilePath)Zip the files. |
|
static boolean |
zipFiles(java.util.Collection<java.lang.String> srcFilePaths, java.lang.String zipFilePath, java.lang.String comment)Zip the files. |
|
static boolean |
zipFiles(java.util.Collection<java.io.File> srcFiles, java.io.File zipFile)Zip the files. |
|
static boolean |
zipFiles(java.util.Collection<java.io.File> srcFiles, java.io.File zipFile, java.lang.String comment)Zip the files. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Return the files' comment in ZIP file.
zipFilePath - The path of ZIP file.Return the files' comment in ZIP file.
zipFile - The ZIP file.Return the files' path in ZIP file.
zipFilePath - The path of ZIP file.Return the files' path in ZIP file.
zipFile - The ZIP file.Unzip the file.
zipFilePath - The path of ZIP file.destDirPath - The path of destination directory.Unzip the file.
zipFile - The ZIP file.destDir - The destination directory.Unzip the file by keyword.
zipFilePath - The path of ZIP file.destDirPath - The path of destination directory.keyword - The keyboard.Unzip the file by keyword.
zipFile - The ZIP file.destDir - The destination directory.keyword - The keyboard.Zip the file.
srcFilePath - The path of source file.zipFilePath - The path of ZIP file.true: successfalse: failZip the file.
srcFilePath - The path of source file.zipFilePath - The path of ZIP file.comment - The comment.true: successfalse: failZip the file.
srcFile - The source of file.zipFile - The ZIP file.true: successfalse: failZip the file.
srcFile - The source of file.zipFile - The ZIP file.comment - The comment.true: successfalse: failZip the files.
srcFiles - The source of files.zipFilePath - The path of ZIP file.true: successfalse: failZip the files.
srcFilePaths - The paths of source files.zipFilePath - The path of ZIP file.comment - The comment.true: successfalse: failZip the files.
srcFiles - The source of files.zipFile - The ZIP file.true: successfalse: failZip the files.
srcFiles - The source of files.zipFile - The ZIP file.comment - The comment.true: successfalse: fail