java.lang.Object | +--javax.xml.parsers.SAXParserFactoryKnown Direct Subclasses:
boolean | getFeature(java.lang.String name) Retrieves a current factory feature flag setting. |
boolean | |
boolean | |
static SAXParserFactory | |
Returns a new instance of a SAXParser using the platform default implementation and the currently specified factory feature flag settings. | |
void | setFeature(java.lang.String name, boolean value) Establishes a factory parameter corresponding to the specified feature flag. |
void | setNamespaceAware(boolean value) |
void | setValidating(boolean value) |
protected SAXParserFactory()
public boolean getFeature(java.lang.String name)
SAXNotRecognizedException
- if the specified SAX2 feature flag is not recognizedSAXNotSupportedException
- if the specified SAX2 feature flag values can not be
accessed before parsing begins.public boolean isNamespaceAware()
public boolean isValidating()
public static SAXParserFactory newInstance()
public SAXParser newSAXParser()
ParserConfigurationException
- when the parameter combination is not supportedSAXNotRecognizedException
- if one of the specified SAX2 feature flags is not recognizedSAXNotSupportedException
- if one of the specified SAX2 feature flags values can
not be set, perhaps because of sequencing requirements
(which could be met by using SAX2 directly)public void setFeature(java.lang.String name, boolean value)
SAXNotRecognizedException
- if the specified SAX2 feature flag is not recognizedSAXNotSupportedException
- if the specified SAX2 feature flag values can not be set,
perhaps because of sequencing requirements (which could
be met by using SAX2 directly)public void setNamespaceAware(boolean value)
public void setValidating(boolean value)