|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.xml.parsers.SAXParserFactory
SAXParserFactory is used to bootstrap JAXP wrappers for
SAX parsers.
Constructor Summary | |
protected |
SAXParserFactory()
|
Method Summary | |
abstract boolean |
getFeature(java.lang.String name)
Retrieves a current factory feature flag setting. |
boolean |
isNamespaceAware()
|
boolean |
isValidating()
|
static SAXParserFactory |
newInstance()
|
abstract SAXParser |
newSAXParser()
Returns a new instance of a SAXParser using the platform default implementation and the currently specified factory feature flag settings. |
abstract 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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected SAXParserFactory()
Method Detail |
public static SAXParserFactory newInstance()
public abstract SAXParser newSAXParser() throws ParserConfigurationException, SAXException
ParserConfigurationException
- when the parameter combination is not supported
SAXNotRecognizedException
- if one of the specified SAX2 feature flags is not recognized
SAXNotSupportedException
- 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)
SAXException
public void setNamespaceAware(boolean value)
public void setValidating(boolean value)
public boolean isNamespaceAware()
public boolean isValidating()
public abstract void setFeature(java.lang.String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
name
- identifies the feature flagvalue
- specifies the desired flag value
SAXNotRecognizedException
- if the specified SAX2 feature flag is not recognized
SAXNotSupportedException
- if the specified SAX2 feature flag values can not be set,
perhaps because of sequencing requirements (which could
be met by using SAX2 directly)
ParserConfigurationException
public abstract boolean getFeature(java.lang.String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException
name
- identifies the feature flag
SAXNotRecognizedException
- if the specified SAX2 feature flag is not recognized
SAXNotSupportedException
- if the specified SAX2 feature flag values can not be
accessed before parsing begins.
ParserConfigurationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |