Package com.ctc.wstx.sax
Class WstxSAXParserFactory
- java.lang.Object
-
- javax.xml.parsers.SAXParserFactory
-
- com.ctc.wstx.sax.WstxSAXParserFactory
-
public class WstxSAXParserFactory extends SAXParserFactory
This is implementation of the main JAXP SAX factory, and as such acts as the entry point from JAXP.Note: most of the SAX features are not configurable as of yet. However, effort is made to recognize all existing standard features and properties, to allow using code to figure out existing capabilities automatically.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
mFeatNsPrefixes
Sax feature that determines whether namespace declarations need to be also reported as attributes or not.protected WstxInputFactory
mStaxFactory
-
Constructor Summary
Constructors Constructor Description WstxSAXParserFactory()
WstxSAXParserFactory(WstxInputFactory f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getFeature(String name)
SAXParser
newSAXParser()
void
setFeature(String name, boolean value)
-
Methods inherited from class javax.xml.parsers.SAXParserFactory
getSchema, isNamespaceAware, isValidating, isXIncludeAware, newDefaultInstance, newInstance, newInstance, setNamespaceAware, setSchema, setValidating, setXIncludeAware
-
-
-
-
Field Detail
-
mStaxFactory
protected final WstxInputFactory mStaxFactory
-
mFeatNsPrefixes
protected boolean mFeatNsPrefixes
Sax feature that determines whether namespace declarations need to be also reported as attributes or not.
-
-
Constructor Detail
-
WstxSAXParserFactory
public WstxSAXParserFactory()
- Since:
- 5.3
-
WstxSAXParserFactory
public WstxSAXParserFactory(WstxInputFactory f)
- Since:
- 4.0.8
-
-
Method Detail
-
getFeature
public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
- Specified by:
getFeature
in classSAXParserFactory
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
newSAXParser
public SAXParser newSAXParser()
- Specified by:
newSAXParser
in classSAXParserFactory
-
setFeature
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
- Specified by:
setFeature
in classSAXParserFactory
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
-