赞
踩
添加依赖
// https://mvnrepository.com/artifact/com.github.junrar/junrar
implementation group: 'com.github.junrar', name: 'junrar', version: '0.7'
代码示例
package com.tools; import java.io.File; import java.io.FileOutputStream; import com.github.junrar.Archive; import com.github.junrar.rarfile.FileHeader; public class ZipAndRarTools { public static String srcDirectoryPath = "D:\\Recreation\\zip"; public static String dstDirectoryPath = "D:\\Recreation\\unzip"; public static void main(String[] args) { File srcFiles = new File
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。