@Test public void unzip() throws Exception { URL url = ZipUtilsTest.class.getResource("/com/datamaio/fwk/io/zip2test.zip"); Path zipFile = Paths.get(url.toURI()); Path targetDir = Files.createTempDirectory("DIR"); ZipUtils.unzip(zipFile, targetDir); Path img = PathUtils.get(targetDir, "/dir/subdir/img.jpg"); assertThat(exists(img), is(true)); FileUtils.delete(targetDir); }
public static void unzip(String zipFilename, String destDirname) { final Path zipFile = Paths.get(zipFilename); final Path destDir = Paths.get(destDirname); unzip(zipFile, destDir); }
ZipUtils { public static void unzip(String zipFilename, String destDirname) { final Path zipFile = Paths.get(zipFilename); final Path destDir = Paths.get(destDirname); unzip(zipFile, destDir); } }
ZipUtils { public static void unzip(String zipFilename, String destDirname) { final Path zipFile = Paths.get(zipFilename); final Path destDir = Paths.get(destDirname); unzip(zipFile, destDir); }  }
ZipUtils { public static void unzip(String zipFilename, String destDirname) { final Path zipFile = Paths.get(zipFilename); final Path destDir = Paths.get(destDirname); unzip(zipFile, destDir); }  static void unzip(String zipFilename, String destDirname); static void unzip(final Path zipFile, final Path destDir); static void create(String zipFilename, final String relativeDir, String... filenames); static void create(final Path zipFile, final Path relativeDir, Path... files); static List<String> list(String zipFilename); static List<String> list(Path zipFile); }
ZipUtils { public static void unzip(String zipFilename, String destDirname) { final Path zipFile = Paths.get(zipFilename); final Path destDir = Paths.get(destDirname); unzip(zipFile, destDir); }  static void unzip(String zipFilename, String destDirname); static void unzip(final Path zipFile, final Path destDir); static void create(String zipFilename, final String relativeDir, String... filenames); static void create(final Path zipFile, final Path relativeDir, Path... files); static List<String> list(String zipFilename); static List<String> list(Path zipFile);  }