Class XppDriver
java.lang.Object
com.thoughtworks.xstream.io.AbstractDriver
com.thoughtworks.xstream.io.xml.AbstractXmlDriver
com.thoughtworks.xstream.io.xml.AbstractXppDriver
com.thoughtworks.xstream.io.xml.XppDriver
- All Implemented Interfaces:
HierarchicalStreamDriver
A
HierarchicalStreamDriver using the XmlPullParserFactory to locate an XML Pull Parser.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.xmlpull.v1.XmlPullParserCreate a default XML Pull Parser.protected org.xmlpull.v1.XmlPullParserCreate the parser of the XPP implementation.Methods inherited from class AbstractXppDriver
createReader, createReader, createWriter, createWriterMethods inherited from class AbstractXmlDriver
xmlFriendlyReplacerMethods inherited from class AbstractDriver
createReader, createReader, getNameCoder
-
Field Details
-
factory
private static org.xmlpull.v1.XmlPullParserFactory factory
-
-
Constructor Details
-
XppDriver
public XppDriver() -
XppDriver
- Since:
- 1.4
-
XppDriver
Deprecated.As of 1.4, useXppDriver(NameCoder)instead.- Since:
- 1.2
-
-
Method Details
-
createDefaultParser
public static org.xmlpull.v1.XmlPullParser createDefaultParser() throws org.xmlpull.v1.XmlPullParserExceptionCreate a default XML Pull Parser. The method uses the Java Service API to get the registeredXmlPullParserFactoryand let it create a new parser.- Returns:
- a new instance of an XML Pull Parser
- Throws:
org.xmlpull.v1.XmlPullParserException- if the creation of a new parser fails.- Since:
- 1.4.11
-
createParser
protected org.xmlpull.v1.XmlPullParser createParser() throws org.xmlpull.v1.XmlPullParserExceptionDescription copied from class:AbstractXppDriverCreate the parser of the XPP implementation.- Specified by:
createParserin classAbstractXppDriver- Throws:
org.xmlpull.v1.XmlPullParserException- if the parser cannot be created
-
XppDriver(NameCoder)instead.