|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.xml.parsers.SAXParserFactory
public abstract class SAXParserFactory
Provides a factory for SAXParser instances. The class first needs to be instantiated using the newInstance() method. The instance can be configured as desired. A call to newSAXParser() then provides a SAXParser instance matching this configuration.
| Constructor Summary | |
|---|---|
protected |
SAXParserFactory()
Do-nothing constructor. |
| Method Summary | |
|---|---|
abstract boolean |
getFeature(String name)
Queries a feature from the underlying implementation. |
boolean |
isNamespaceAware()
Queries whether the factory is configured to deliver parsers that are namespace-aware. |
boolean |
isValidating()
Queries whether the factory is configured to deliver parsers that are validating. |
boolean |
isXIncludeAware()
Queries whether the factory is configured to deliver parsers that are XInclude-aware. |
static SAXParserFactory |
newInstance()
Creates a new SAXParserFactory that can be configured and then be used for creating SAXPArser objects. |
abstract SAXParser |
newSAXParser()
Creates a new SAXParser that matches the current configuration. |
abstract void |
setFeature(String name,
boolean value)
Sets a feature in the underlying implementation. |
void |
setNamespaceAware(boolean value)
Determines whether the factory is configured to deliver parsers that are namespace-aware. |
void |
setValidating(boolean value)
Determines whether the factory is configured to deliver parsers that are validating. |
void |
setXIncludeAware(boolean value)
Determines whether the factory is configured to deliver parsers that are XInclude-aware. |
| 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 abstract boolean getFeature(String name)
throws ParserConfigurationException,
SAXNotRecognizedException,
SAXNotSupportedException
name - The name of the feature. The default Android implementation
of SAXParser supports only the following three features:
http://xml.org/sax/features/namespaceshttp://xml.org/sax/features/namespace-prefixes
http://xml.org/sax/features/validationParserConfigurationException - if no SAXParser matching the given
criteria is available.
SAXNotRecognizedException - If the given feature is not known to
the underlying implementation.
SAXNotSupportedException - If the given features is known, but not
supported by the underlying implementation.public boolean isNamespaceAware()
public boolean isValidating()
public boolean isXIncludeAware()
public static SAXParserFactory newInstance()
throws FactoryConfigurationError
FactoryConfigurationError - If no SAXParserFactory can be created.
public abstract SAXParser newSAXParser()
throws ParserConfigurationException,
SAXException
ParserConfigurationException - if no matching SAXParser could be
found.
SAXException - If a problem occurs during SAX parsing.
public abstract void setFeature(String name,
boolean value)
throws ParserConfigurationException,
SAXNotRecognizedException,
SAXNotSupportedException
name - The name of the feature. The default Android implementation
of SAXParser supports only the following three features:
http://xml.org/sax/features/namespaceshttp://xml.org/sax/features/namespace-prefixes
http://xml.org/sax/features/validationvalue - The status of the feature.
ParserConfigurationException - if no SAXParser matching the given
criteria is available.
SAXNotRecognizedException - If the given feature is not known to
the underlying implementation.
SAXNotSupportedException - If the given features is known, but not
supported by the underlying implementation.public void setNamespaceAware(boolean value)
value - Turns namespace-awareness on or off.public void setValidating(boolean value)
value - Turns validation on or off.public void setXIncludeAware(boolean value)
value - Turns XInclude-awareness on or off.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||