java.lang.Object | |
↳ | org.xmlpull.v1.XmlPullParserFactory |
This class is used to create implementations of XML Pull Parser defined in XMPULL V1 API.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | PROPERTY_NAME |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
classNamesLocation | Unused, but we have to keep it because it's public API. | ||||||||||
features | |||||||||||
parserClasses | |||||||||||
serializerClasses |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected constructor to be called by factory implementations.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the current value of the feature with given name.
| |||||||||||
Indicates whether or not the factory is configured to produce
parsers which are namespace aware
(it simply set feature XmlPullParser.FEATURE_PROCESS_NAMESPACES to true or false).
| |||||||||||
Indicates whether or not the factory is configured to produce parsers
which validate the XML content during parse.
| |||||||||||
Creates a new instance of a PullParserFactory that can be used
to create XML pull parsers.
| |||||||||||
Creates a factory that always returns instances of of
KXmlParser and
KXmlSerializer . | |||||||||||
Creates a new instance of a XML Pull Parser
using the currently configured factory features.
| |||||||||||
Creates a new instance of a XML Serializer.
| |||||||||||
Set the features to be set when XML Pull Parser is created by this factory.
| |||||||||||
Specifies that the parser produced by this factory will provide
support for XML namespaces.
| |||||||||||
Specifies that the parser produced by this factory will be validating
(it simply set feature XmlPullParser.FEATURE_VALIDATION to true or false).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Unused, but we have to keep it because it's public API.
Protected constructor to be called by factory implementations.
Return the current value of the feature with given name.
NOTE: factory features are not used for XML Serializer.
name | The name of feature to be retrieved. |
---|
Indicates whether or not the factory is configured to produce parsers which are namespace aware (it simply set feature XmlPullParser.FEATURE_PROCESS_NAMESPACES to true or false).
Indicates whether or not the factory is configured to produce parsers which validate the XML content during parse.
Creates a new instance of a PullParserFactory that can be used
to create XML pull parsers. The factory will always return instances
of KXmlParser
and KXmlSerializer
.
XmlPullParserException |
---|
Creates a factory that always returns instances of of KXmlParser
and
KXmlSerializer
. This does not support factories capable of
creating arbitrary parser and serializer implementations. Both arguments to this
method are unused.
XmlPullParserException |
---|
Creates a new instance of a XML Pull Parser using the currently configured factory features.
XmlPullParserException |
---|
Creates a new instance of a XML Serializer.
NOTE: factory features are not used for XML Serializer.
XmlPullParserException | if a parser cannot be created which satisfies the requested configuration. |
---|
Set the features to be set when XML Pull Parser is created by this factory.
NOTE: factory features are not used for XML Serializer.
name | string with URI identifying feature |
---|---|
state | if true feature will be set; if false will be ignored |
XmlPullParserException |
---|
Specifies that the parser produced by this factory will provide support for XML namespaces. By default the value of this is set to false.
awareness | true if the parser produced by this code will provide support for XML namespaces; false otherwise. |
---|
Specifies that the parser produced by this factory will be validating (it simply set feature XmlPullParser.FEATURE_VALIDATION to true or false). By default the value of this is set to false.
validating | - if true the parsers created by this factory must be validating. |
---|