Class HTMLFileFilter

    • Field Detail

    • Constructor Detail

      • HTMLFileFilter

        public HTMLFileFilter()
        Construct.
      • HTMLFileFilter

        public HTMLFileFilter​(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

      • isHTMLFile

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

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

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