Class ZipUtil


  • public final class ZipUtil
    extends java.lang.Object
    some utility methods for zip files
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Collection<java.lang.String> getFileNames​(java.io.File zipFile, java.util.regex.Pattern pattern)
      searches for all filenames that match the given regex-pattern
      static java.util.Collection<java.lang.String> getFileNames​(java.util.zip.ZipFile zipFile, java.util.regex.Pattern pattern)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getFileNames

        public static java.util.Collection<java.lang.String> getFileNames​(java.io.File zipFile,
                                                                          java.util.regex.Pattern pattern)
        searches for all filenames that match the given regex-pattern
        Parameters:
        zipFile - the zip file in which to search
        pattern - the pattern to search for
        Returns:
        all the filenames that match the pattern
      • getFileNames

        public static java.util.Collection<java.lang.String> getFileNames​(java.util.zip.ZipFile zipFile,
                                                                          java.util.regex.Pattern pattern)