Class SaxHelper


  • public final class SaxHelper
    extends Object
    Common helper methods for SAX parsers.
    Author:
    Michal Gajdos
    • Method Detail

      • isXdkParserFactory

        public static boolean isXdkParserFactory​(SAXParserFactory parserFactory)
        Determines whether the given SAX parserFactory is from XDK package or not.
        Parameters:
        parserFactory - SAX parser factory to evaluate.
        Returns:
        true if the given SAX parser factory is an XDK factory, false otherwise.
      • isXdkDocumentBuilderFactory

        public static boolean isXdkDocumentBuilderFactory​(DocumentBuilderFactory builderFactory)
        Determines whether the given builderFactory is from XDK package or not.
        Parameters:
        builderFactory - document builder factory to evaluate.
        Returns:
        true if the given document builder factory is an XDK factory, false otherwise.