Package com.ctc.wstx.sax
Class WstxSAXParserFactory
- java.lang.Object
-
- javax.xml.parsers.SAXParserFactory
-
- com.ctc.wstx.sax.WstxSAXParserFactory
-
public class WstxSAXParserFactory extends javax.xml.parsers.SAXParserFactoryThis 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 booleanmFeatNsPrefixesSax feature that determines whether namespace declarations need to be also reported as attributes or not.protected WstxInputFactorymStaxFactory
-
Constructor Summary
Constructors Constructor Description WstxSAXParserFactory()WstxSAXParserFactory(WstxInputFactory f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetFeature(java.lang.String name)javax.xml.parsers.SAXParsernewSAXParser()voidsetFeature(java.lang.String name, boolean value)
-
-
-
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(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException- Specified by:
getFeaturein classjavax.xml.parsers.SAXParserFactory- Throws:
org.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedException
-
newSAXParser
public javax.xml.parsers.SAXParser newSAXParser()
- Specified by:
newSAXParserin classjavax.xml.parsers.SAXParserFactory
-
setFeature
public void setFeature(java.lang.String name, boolean value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException- Specified by:
setFeaturein classjavax.xml.parsers.SAXParserFactory- Throws:
org.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedException
-
-