This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ZipUtils { | |
| private static final Logger LOGGER = Logger.getLogger(ZipUtils.class.getName()); | |
| public static void unzip(final Path zipFile, final Path decryptTo) { | |
| try (ZipInputStream zipInputStream = new ZipInputStream(Files.newInputStream(zipFile))) { | |
| ZipEntry entry; | |
| while ((entry = zipInputStream.getNextEntry()) != null) { | |
| LOGGER.log(Level.INFO, "entry name = {0}", entry.getName()); | |
| final Path toPath = decryptTo.resolve(entry.getName()); |