@Test void testUnzipSkipHiddenInvalid() throws IOException { InputStream is = ZipFileUtil.class.getResourceAsStream("flip.zip"); Path tempDirPath = tempDir.toPath(); Path targetPath = tempDirPath.resolve("flip.zip"); java.nio.file.Files.copy(is, targetPath); assertThrows(UnzipException.class, () -> ZipFileUtil.unzipSkipHidden(targetPath.toFile())); }
public static List<File> unzipSkipHidden(File file) { return unzip(file, name -> name.startsWith(".") || name.startsWith("_") ? null : name); }
ZipFileUtil { public static List<File> unzipSkipHidden(File file) { return unzip(file, name -> name.startsWith(".") || name.startsWith("_") ? null : name); } }
ZipFileUtil { public static List<File> unzipSkipHidden(File file) { return unzip(file, name -> name.startsWith(".") || name.startsWith("_") ? null : name); } private  ZipFileUtil(); }
ZipFileUtil { public static List<File> unzipSkipHidden(File file) { return unzip(file, name -> name.startsWith(".") || name.startsWith("_") ? null : name); } private  ZipFileUtil(); static void unzip(InputStream is, File outputDir); static List<File> unzipSkipHidden(File file); }
ZipFileUtil { public static List<File> unzipSkipHidden(File file) { return unzip(file, name -> name.startsWith(".") || name.startsWith("_") ? null : name); } private  ZipFileUtil(); static void unzip(InputStream is, File outputDir); static List<File> unzipSkipHidden(File file);  }