Class ZipUtil

    • Constructor Detail

      • ZipUtil

        public ZipUtil()
    • Method Detail

      • unzipFromClassResource

        public static void unzipFromClassResource​(Class<?> clazz,
                                                  String resourcePath,
                                                  File extractToPath)
                                           throws IOException
        Unzip a classpath resource using the given Class as the resource root path.
        Throws:
        IOException
      • unzipToFolder

        public static void unzipToFolder​(File inputFile,
                                         File outputDir)
                                  throws IOException
        Unzip the given File to the specified directory.
        Throws:
        IOException
      • getEndsWithZipRegularExpression

        public static String getEndsWithZipRegularExpression()
      • endsWithZipExtension

        public static boolean endsWithZipExtension​(String path)
      • getZipExtensions

        public static Set<String> getZipExtensions()
      • scanZipFile

        public static List<String> scanZipFile​(Path zipFilePath,
                                               boolean relativeOnly)