Class SaxHelper
- java.lang.Object
-
- org.glassfish.jersey.internal.util.SaxHelper
-
public final class SaxHelper extends java.lang.ObjectCommon helper methods for SAX parsers.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSaxHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisXdkDocumentBuilderFactory(javax.xml.parsers.DocumentBuilderFactory builderFactory)Determines whether the givenbuilderFactoryis from XDK package or not.private static booleanisXdkFactory(java.lang.Object factory, java.lang.String className)static booleanisXdkParserFactory(javax.xml.parsers.SAXParserFactory parserFactory)Determines whether the given SAXparserFactoryis from XDK package or not.
-
-
-
Method Detail
-
isXdkParserFactory
public static boolean isXdkParserFactory(javax.xml.parsers.SAXParserFactory parserFactory)
Determines whether the given SAXparserFactoryis from XDK package or not.- Parameters:
parserFactory- SAX parser factory to evaluate.- Returns:
trueif the given SAX parser factory is an XDK factory,falseotherwise.
-
isXdkDocumentBuilderFactory
public static boolean isXdkDocumentBuilderFactory(javax.xml.parsers.DocumentBuilderFactory builderFactory)
Determines whether the givenbuilderFactoryis from XDK package or not.- Parameters:
builderFactory- document builder factory to evaluate.- Returns:
trueif the given document builder factory is an XDK factory,falseotherwise.
-
isXdkFactory
private static boolean isXdkFactory(java.lang.Object factory, java.lang.String className)
-
-