Class JARFileFilter

    • Field Detail

      • EXTENSION_JAR

        public static final String EXTENSION_JAR
        Default extension for the Java archive files.
        See Also:
        Constant Field Values
    • Constructor Detail

      • JARFileFilter

        public JARFileFilter()
        Construct.
      • JARFileFilter

        public JARFileFilter​(boolean acceptDirectories)
        Constructor.
        Parameters:
        acceptDirectories - is true to permit to this file filter to accept directories; false if the directories should not match.
    • Method Detail

      • isJARFile

        public static boolean isJARFile​(File file)
        Replies if the specified file contains JAR file.
        Parameters:
        file - is the file to test.
        Returns:
        true if the given file contains JAR file, otherwise false
      • isJARFile

        public static boolean isJARFile​(URL file)
        Replies if the specified file contains JAR file.
        Parameters:
        file - is the file to test.
        Returns:
        true if the given file contains JAR file, otherwise false
      • isJARFile

        public static boolean isJARFile​(String file)
        Replies if the specified file contains JAR file.
        Parameters:
        file - is the file to test.
        Returns:
        true if the given file contains JAR file, otherwise false