Package com.fasterxml.aalto.sax
Class SAXUtil
- java.lang.Object
-
- com.fasterxml.aalto.sax.SAXUtil
-
public final class SAXUtil extends java.lang.Object
Container for utility methods needed by the parser factory, or parser wrapper components.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.util.HashMap<java.lang.String,SAXFeature>
sStdFeatures
(package private) static java.util.HashMap<java.lang.String,SAXProperty>
sStdProperties
-
Constructor Summary
Constructors Modifier Constructor Description private
SAXUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SAXFeature
findStdFeature(java.lang.String featURI)
static SAXProperty
findStdProperty(java.lang.String featURI)
static java.lang.Boolean
getFixedStdFeatureValue(SAXFeature stdFeat)
Convenience method that will return value (True/False) for the given standard feature, iff it has fixed (immutable) value for the current implementation.static void
reportUnknownFeature(java.lang.String name)
static void
reportUnknownProperty(java.lang.String name)
-
-
-
Field Detail
-
sStdFeatures
static final java.util.HashMap<java.lang.String,SAXFeature> sStdFeatures
-
sStdProperties
static final java.util.HashMap<java.lang.String,SAXProperty> sStdProperties
-
-
Method Detail
-
findStdFeature
public static SAXFeature findStdFeature(java.lang.String featURI)
-
findStdProperty
public static SAXProperty findStdProperty(java.lang.String featURI)
-
getFixedStdFeatureValue
public static java.lang.Boolean getFixedStdFeatureValue(SAXFeature stdFeat)
Convenience method that will return value (True/False) for the given standard feature, iff it has fixed (immutable) value for the current implementation. If value is not immutable, returns null
-
reportUnknownFeature
public static void reportUnknownFeature(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException
- Throws:
org.xml.sax.SAXNotRecognizedException
-
reportUnknownProperty
public static void reportUnknownProperty(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException
- Throws:
org.xml.sax.SAXNotRecognizedException
-
-