public static void createAppPackageFile(File fileToBeCreated, File directory) throws ZipException { ZipFile zipFile = new ZipFile(fileToBeCreated); ZipParameters params = new ZipParameters(); params.setIncludeRootFolder(false); zipFile.addFolder(directory, params); } origin: MCMrARM/revolution-...
ZipFile zip = new ZipFile(zipFile); zip.extractAll(outputFolder); } 代码示例来源:origin: linkedin/TonY public static void unzipArchive(String src, String dst) throws IOException { LOG.info("Unzipping " + src + " to destination " + dst); try { ZipFile zipFile = new ZipFile(src); zi...