java多线程文件解压

public class Compress {
   

	public static void unzipWithCommons(File zipFile, String dest) throws IOException {
   
	    try (ZipFile archive = new ZipFile(zipFile)) {
   
	        for (ZipArchiveEntry entry : Collections.list(archive.getEntries())) {
   
	            File entryDestination = new File(dest, entry.getName());
	            if (entry.isDirectory()) {
   
	                entryDestination.mkdirs();
	            } else {
   
	                Files.copy(archive.getInputStream(entry), entryDestination.toPath(), StandardCopyOption

你可能感兴趣的:(java进阶综合提升,java,开发语言)