public class ZipUtil extends Object
| 构造器和说明 |
|---|
ZipUtil() |
public static void zip(String targetPath, String zipFileName, String... filePaths) throws IOException
targetPath - 目标路径zipFileName - 压缩文件名filePaths - 源文件(夹)路径IOExceptionpublic static void unzip(String zipFilePath, String targetPath) throws IOException
zipFilePath - 压缩文件路径targetPath - 解压路径IOExceptionCopyright © 2021. All rights reserved.