Class Archive


  • public class Archive
    extends java.lang.Object
    Utility methods for working with zip/jar archives.
    Author:
    David Hovemeyer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Set<java.lang.String> ARCHIVE_EXTENSION_SET
      File extensions that indicate an archive (zip, jar, or similar).
    • Constructor Summary

      Constructors 
      Constructor Description
      Archive()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isArchiveFileName​(java.lang.String fileName)
      Determine whether or not the given filename appears to identify a zip/jar archive.
      static boolean isLibraryFileName​(java.lang.String fileName)  
      • Methods inherited from class java.lang.Object

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

      • ARCHIVE_EXTENSION_SET

        @StaticConstant
        public static final java.util.Set<java.lang.String> ARCHIVE_EXTENSION_SET
        File extensions that indicate an archive (zip, jar, or similar).
    • Constructor Detail

      • Archive

        public Archive()
    • Method Detail

      • isArchiveFileName

        public static boolean isArchiveFileName​(java.lang.String fileName)
        Determine whether or not the given filename appears to identify a zip/jar archive.
        Parameters:
        fileName - the filename
        Returns:
        true if the filename appears to identify an archive, false otherwise
      • isLibraryFileName

        public static boolean isLibraryFileName​(java.lang.String fileName)