Top Description Fields Constructors Methods
com.thoughtworks.xstream.io.xml

public Class XppDriver

extends AbstractXppDriver
Class Inheritance
Imports
com.thoughtworks.xstream.io.HierarchicalStreamDriver, com.thoughtworks.xstream.io.naming.NameCoder, org.xmlpull.v1.XmlPullParser, .XmlPullParserException, .XmlPullParserFactory

Deprecated

as a consequence of AbstractXppDriver being deprecated. See corresponding docs for further information.

A HierarchicalStreamDriver using the XmlPullParserFactory to locate an XML Pull Parser.
Authors
Joe Walnes, Jörg Schaible

Field Summary

Modifier and TypeField and Description
private static XmlPullParserFactory

Constructor Summary

AccessConstructor and Description
public
public
XppDriver(NameCoder nameCoder)

public
XppDriver(XmlFriendlyReplacer replacer)

Deprecated As of 1.4, use XppDriver#XppDriver(NameCoder) instead.

Method Summary

Modifier and TypeMethod and Description
public static synchronized XmlPullParser

Returns:

a new instance of an XML Pull Parser
createDefaultParser
()

Create a default XML Pull Parser.

protected XmlPullParser
createParser()

Implements abstract com.thoughtworks.xstream.io.xml.AbstractXppDriver.createParser.

Create the parser of the XPP implementation.
Inherited from com.thoughtworks.xstream.io.xml.AbstractXppDriver:
createReadercreateReadercreateWritercreateWriter

Field Detail

factoryback to summary
private static XmlPullParserFactory factory

Constructor Detail

XppDriverback to summary
public XppDriver()
XppDriverback to summary
public XppDriver(NameCoder nameCoder)
Since
1.4
XppDriverback to summary
public XppDriver(XmlFriendlyReplacer replacer)

Deprecated

As of 1.4, use XppDriver#XppDriver(NameCoder) instead.

Since
1.2

Method Detail

createDefaultParserback to summary
public static synchronized XmlPullParser createDefaultParser() throws XmlPullParserException

Create a default XML Pull Parser. The method uses the Java Service API to get the registered XmlPullParserFactory and let it create a new parser.

Returns:XmlPullParser

a new instance of an XML Pull Parser

Exceptions
XmlPullParserException:
if the creation of a new parser fails.
Since
1.4.11
createParserback to summary
protected XmlPullParser createParser() throws XmlPullParserException

Implements abstract com.thoughtworks.xstream.io.xml.AbstractXppDriver.createParser.

Doc from com.thoughtworks.xstream.io.xml.AbstractXppDriver.createParser.

Create the parser of the XPP implementation.

Exceptions
XmlPullParserException:
if the parser cannot be created