Package org.xmlpull.mxp1
Class MXParserFactory
- java.lang.Object
-
- org.xmlpull.v1.XmlPullParserFactory
-
- org.xmlpull.mxp1.MXParserFactory
-
public class MXParserFactory extends XmlPullParserFactory
Simple facotry to speed up creation process.- Author:
- Aleksander Slominski
-
-
Field Summary
Fields Modifier and Type Field Description protected static booleanstringCachedParserAvailable-
Fields inherited from class org.xmlpull.v1.XmlPullParserFactory
classNamesLocation, features, parserClasses, PROPERTY_NAME, serializerClasses
-
-
Constructor Summary
Constructors Constructor Description MXParserFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlPullParsernewPullParser()Creates a new instance of a XML Pull Parser using the currently configured factory features.XmlSerializernewSerializer()Creates a new instance of a XML Serializer.-
Methods inherited from class org.xmlpull.v1.XmlPullParserFactory
getFeature, isNamespaceAware, isValidating, newInstance, newInstance, setFeature, setNamespaceAware, setValidating
-
-
-
-
Method Detail
-
newPullParser
public XmlPullParser newPullParser() throws XmlPullParserException
Description copied from class:XmlPullParserFactoryCreates a new instance of a XML Pull Parser using the currently configured factory features.- Overrides:
newPullParserin classXmlPullParserFactory- Returns:
- A new instance of a XML Pull Parser.
- Throws:
XmlPullParserException- if a parser cannot be created which satisfies the requested configuration.
-
newSerializer
public XmlSerializer newSerializer() throws XmlPullParserException
Description copied from class:XmlPullParserFactoryCreates a new instance of a XML Serializer.NOTE: factory features are not used for XML Serializer.
- Overrides:
newSerializerin classXmlPullParserFactory- Returns:
- A new instance of a XML Serializer.
- Throws:
XmlPullParserException- if a parser cannot be created which satisfies the requested configuration.
-
-