Class SaxHelper
- java.lang.Object
-
- org.glassfish.jersey.internal.util.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 givenbuilderFactory
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 SAXparserFactory
is from XDK package or not.
-
-
-
Method Detail
-
isXdkParserFactory
public static boolean isXdkParserFactory(javax.xml.parsers.SAXParserFactory parserFactory)
Determines whether the given SAXparserFactory
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 givenbuilderFactory
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)
-
-