Package com.fasterxml.aalto.sax
Class SAXParserFactoryImpl
- java.lang.Object
-
- javax.xml.parsers.SAXParserFactory
-
- com.fasterxml.aalto.sax.SAXParserFactoryImpl
-
public class SAXParserFactoryImpl extends javax.xml.parsers.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 (package private) InputFactoryImpl
mStaxFactory
-
Constructor Summary
Constructors Constructor Description SAXParserFactoryImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getFeature(java.lang.String name)
static javax.xml.parsers.SAXParserFactory
newInstance()
javax.xml.parsers.SAXParser
newSAXParser()
void
setFeature(java.lang.String name, boolean enabled)
void
setNamespaceAware(boolean awareness)
void
setValidating(boolean value)
-
-
-
Field Detail
-
mStaxFactory
final InputFactoryImpl mStaxFactory
-
-
Method Detail
-
newInstance
public static javax.xml.parsers.SAXParserFactory newInstance()
-
getFeature
public boolean getFeature(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
- Specified by:
getFeature
in classjavax.xml.parsers.SAXParserFactory
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
-
newSAXParser
public javax.xml.parsers.SAXParser newSAXParser()
- Specified by:
newSAXParser
in classjavax.xml.parsers.SAXParserFactory
-
setFeature
public void setFeature(java.lang.String name, boolean enabled) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException
- Specified by:
setFeature
in classjavax.xml.parsers.SAXParserFactory
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
-
setNamespaceAware
public void setNamespaceAware(boolean awareness)
- Overrides:
setNamespaceAware
in classjavax.xml.parsers.SAXParserFactory
-
setValidating
public void setValidating(boolean value)
- Overrides:
setValidating
in classjavax.xml.parsers.SAXParserFactory
-
-