public final class ZipUtils extends Object
| Constructor and Description |
|---|
ZipUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
static void |
unzip(String filePath)
解压文件 -- 这个fun没有按照咱们的需要定制
|
static void |
zip(String zipPath,
String[] filePaths)
将filePaths 文件集合打包到zipPath 这个zip文件中
|
public static void zip(String zipPath, String[] filePaths)
zipPath - 压缩后的文件路径filePaths - 需要压缩的文件路径列表public static void unzip(String filePath)
filePath - 压缩文件路径public static void main(String[] args)
Copyright © 2020. All rights reserved.