java.lang.Object | |
↳ | javax.xml.parsers.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 its newSAXParser()
then provides a
SAXParser
instance matching this configuration, if possible.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Do-nothing constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Queries a feature from the underlying implementation.
| |||||||||||
Queries whether the factory is configured to deliver parsers that are
namespace-aware.
| |||||||||||
Queries whether the factory is configured to deliver parsers that are
validating.
| |||||||||||
Queries whether the factory is configured to deliver parsers that are
XInclude-aware.
| |||||||||||
Creates a new
SAXParserFactory that can be configured and then be
used for creating SAXParser objects. | |||||||||||
Creates a new
SAXParser that matches the current configuration of
the factory. | |||||||||||
Sets a feature in the underlying implementation.
| |||||||||||
Determines whether the factory is configured to deliver parsers that are
namespace-aware.
| |||||||||||
Determines whether the factory is configured to deliver parsers that are
validating.
| |||||||||||
Determines whether the factory is configured to deliver parsers that are
XInclude-aware.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Do-nothing constructor. Prevents instantiation. To be overridden by concrete subclasses.
Queries a feature from the underlying implementation.
name | The name of the feature. The default Android implementation
of SAXParser supports only the following three
features:
|
---|
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. |
Queries whether the factory is configured to deliver parsers that are namespace-aware.
true
if namespace-awareness is desired, false
otherwise.Queries whether the factory is configured to deliver parsers that are validating.
true
if validating is desired, false
otherwise.Queries whether the factory is configured to deliver parsers that are XInclude-aware.
true
if XInclude-awareness is desired, false
otherwise.Creates a new SAXParserFactory
that can be configured and then be
used for creating SAXParser
objects. The method first checks the
value of the SAXParserFactory
property. If this
is non-null
, it is assumed to be the name of a class that serves
as the factory. The class is instantiated, and the instance is returned.
If the property value is null
, the system's default factory
implementation is returned.
SAXParserFactory
.FactoryConfigurationError | if no SAXParserFactory can be
created. |
---|
Creates a new SAXParser
that matches the current configuration of
the factory.
SAXParser
.ParserConfigurationException | if no matching SAXParser
could be found. |
---|---|
SAXException | if creating the SAXParser failed due to some
other reason. |
Sets a feature in the underlying implementation.
name | the name of the feature. The default Android implementation
of SAXParser supports only the following three
features:
|
---|---|
value | 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. |
Determines whether the factory is configured to deliver parsers that are namespace-aware.
value | turns namespace-awareness on or off. |
---|
Determines whether the factory is configured to deliver parsers that are validating.
value | turns validation on or off. |
---|
Determines whether the factory is configured to deliver parsers that are XInclude-aware.
value | turns XInclude-awareness on or off. |
---|