Class Archive

java.lang.Object
edu.umd.cs.findbugs.util.Archive

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

    • ARCHIVE_EXTENSION_SET

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

    • Archive

      public Archive()
  • Method Details

    • isArchiveFileName

      public static boolean isArchiveFileName(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

      @Deprecated public static boolean isLibraryFileName(String fileName)
      Deprecated.