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

public abstract Class AbstractXppDriver

extends AbstractXmlDriver
Class Inheritance
Known Direct Subclasses
com.thoughtworks.xstream.io.xml.KXml2Driver, com.thoughtworks.xstream.io.xml.MXParserDriver, com.thoughtworks.xstream.io.xml.Xpp3Driver, com.thoughtworks.xstream.io.xml.XppDriver
Imports
com.thoughtworks.xstream.core.util.XmlHeaderAwareReader, com.thoughtworks.xstream.io.HierarchicalStreamReader, .HierarchicalStreamWriter, .StreamException, com.thoughtworks.xstream.io.naming.NameCoder, org.xmlpull.v1.XmlPullParser, .XmlPullParserException, java.io.IOException, .InputStream, .OutputStream, .OutputStreamWriter, .Reader, .UnsupportedEncodingException, .Writer

Deprecated

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

An abstract base class for a driver using an XPP implementation.
Authors
Joe Walnes, Jörg Schaible
Since
1.4

Constructor Summary

AccessConstructor and Description
public
AbstractXppDriver(NameCoder
the replacer for XML friendly tag and attribute names
nameCoder
)

Construct an AbstractXppDriver.

Method Summary

Modifier and TypeMethod and Description
protected abstract XmlPullParser
createParser()

Create the parser of the XPP implementation.

public HierarchicalStreamReader
createReader(Reader
the Reader with the data to parse
in
)

Implements com.thoughtworks.xstream.io.HierarchicalStreamDriver.createReader.

Create the HierarchicalStreamReader with the stream parser reading from the IO reader.
public HierarchicalStreamReader
createReader(InputStream
the InputStream with the data to parse
in
)

Implements com.thoughtworks.xstream.io.HierarchicalStreamDriver.createReader.

Create the HierarchicalStreamReader with the stream parser reading from the input stream.
public HierarchicalStreamWriter
createWriter(Writer
the Writer to receive the formatted data
out
)

Implements com.thoughtworks.xstream.io.HierarchicalStreamDriver.createWriter.

Create the HierarchicalStreamWriter with the formatted writer.
public HierarchicalStreamWriter
createWriter(OutputStream
the OutputStream to receive the formatted data
out
)

Implements com.thoughtworks.xstream.io.HierarchicalStreamDriver.createWriter.

Create the HierarchicalStreamWriter with the formatted writer.
Inherited from com.thoughtworks.xstream.io.xml.AbstractXmlDriver:
xmlFriendlyReplacer

Constructor Detail

AbstractXppDriverback to summary
public AbstractXppDriver(NameCoder nameCoder)

Construct an AbstractXppDriver.

Parameters
nameCoder:NameCoder

the replacer for XML friendly tag and attribute names

Since
1.4

Method Detail

createParserback to summary
protected abstract XmlPullParser createParser() throws XmlPullParserException

Create the parser of the XPP implementation.

Exceptions
XmlPullParserException:
if the parser cannot be created
Since
1.4
createReaderback to summary
public HierarchicalStreamReader createReader(Reader in)

Implements com.thoughtworks.xstream.io.HierarchicalStreamDriver.createReader.

Doc from com.thoughtworks.xstream.io.HierarchicalStreamDriver.createReader.

Create the HierarchicalStreamReader with the stream parser reading from the IO reader.

Parameters
in:Reader

the Reader with the data to parse

Returns:HierarchicalStreamReader

the HierarchicalStreamReader

createReaderback to summary
public HierarchicalStreamReader createReader(InputStream in)

Implements com.thoughtworks.xstream.io.HierarchicalStreamDriver.createReader.

Doc from com.thoughtworks.xstream.io.HierarchicalStreamDriver.createReader.

Create the HierarchicalStreamReader with the stream parser reading from the input stream.

Parameters
in:InputStream

the InputStream with the data to parse

createWriterback to summary
public HierarchicalStreamWriter createWriter(Writer out)

Implements com.thoughtworks.xstream.io.HierarchicalStreamDriver.createWriter.

Doc from com.thoughtworks.xstream.io.HierarchicalStreamDriver.createWriter.

Create the HierarchicalStreamWriter with the formatted writer.

Parameters
out:Writer

the Writer to receive the formatted data

Returns:HierarchicalStreamWriter

the HierarchicalStreamWriter

createWriterback to summary
public HierarchicalStreamWriter createWriter(OutputStream out)

Implements com.thoughtworks.xstream.io.HierarchicalStreamDriver.createWriter.

Doc from com.thoughtworks.xstream.io.HierarchicalStreamDriver.createWriter.

Create the HierarchicalStreamWriter with the formatted writer.

Parameters
out:OutputStream

the OutputStream to receive the formatted data

Returns:HierarchicalStreamWriter

the HierarchicalStreamWriter