Class XMLFileFilter

    • Constructor Detail

      • XMLFileFilter

        public XMLFileFilter()
        Construct.
      • XMLFileFilter

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

      • isXMLFile

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

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

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