public class ZipTool extends Object
| 构造器和说明 |
|---|
ZipTool() |
public static boolean zip()
throws IOException
IOException - 异常public static void unzip(String zipFilePath, String targetPath, String targetFolder) throws IOException
zipFilePath - 输入的zip文件路径targetPath - 输出的文件夹路径,不存在会则创建targetFolder - 输出的文件名IOException - 当然报io错误咯public static void main(String[] args) throws IOException
IOExceptionCopyright © 2024. All rights reserved.