Class SaxHelper


  • public final class SaxHelper
    extends java.lang.Object
    Common helper methods for SAX parsers.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SaxHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isXdkDocumentBuilderFactory​(javax.xml.parsers.DocumentBuilderFactory builderFactory)
      Determines whether the given builderFactory is from XDK package or not.
      private static boolean isXdkFactory​(java.lang.Object factory, java.lang.String className)  
      static boolean isXdkParserFactory​(javax.xml.parsers.SAXParserFactory parserFactory)
      Determines whether the given SAX parserFactory is from XDK package or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SaxHelper

        private SaxHelper()
    • Method Detail

      • isXdkParserFactory

        public static boolean isXdkParserFactory​(javax.xml.parsers.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​(javax.xml.parsers.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.
      • isXdkFactory

        private static boolean isXdkFactory​(java.lang.Object factory,
                                            java.lang.String className)