Package com.thoughtworks.xstream.io.xml
Class AbstractXppDomDriver
- java.lang.Object
-
- com.thoughtworks.xstream.io.AbstractDriver
-
- com.thoughtworks.xstream.io.xml.AbstractXmlDriver
-
- com.thoughtworks.xstream.io.xml.AbstractXppDomDriver
-
- All Implemented Interfaces:
HierarchicalStreamDriver
- Direct Known Subclasses:
Xpp3DomDriver
,XppDomDriver
public abstract class AbstractXppDomDriver extends AbstractXmlDriver
An abstract base class for a driver using an XPP DOM implementation.- Since:
- 1.4
-
-
Constructor Summary
Constructors Constructor Description AbstractXppDomDriver(NameCoder nameCoder)
Construct an AbstractXppDomDriver.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.xmlpull.v1.XmlPullParser
createParser()
Create the parser of the XPP implementation.HierarchicalStreamReader
createReader(java.io.InputStream in)
Create the HierarchicalStreamReader with the stream parser reading from the input stream.HierarchicalStreamReader
createReader(java.io.Reader in)
Create the HierarchicalStreamReader with the stream parser reading from the IO reader.HierarchicalStreamWriter
createWriter(java.io.OutputStream out)
Create the HierarchicalStreamWriter with the formatted writer.HierarchicalStreamWriter
createWriter(java.io.Writer out)
Create the HierarchicalStreamWriter with the formatted writer.-
Methods inherited from class com.thoughtworks.xstream.io.xml.AbstractXmlDriver
xmlFriendlyReplacer
-
Methods inherited from class com.thoughtworks.xstream.io.AbstractDriver
createReader, createReader, getNameCoder
-
-
-
-
Constructor Detail
-
AbstractXppDomDriver
public AbstractXppDomDriver(NameCoder nameCoder)
Construct an AbstractXppDomDriver.- Parameters:
nameCoder
- the replacer for XML friendly names- Since:
- 1.4
-
-
Method Detail
-
createReader
public HierarchicalStreamReader createReader(java.io.Reader in)
Create the HierarchicalStreamReader with the stream parser reading from the IO reader.- Parameters:
in
- theReader
with the data to parse- Returns:
- the HierarchicalStreamReader
-
createReader
public HierarchicalStreamReader createReader(java.io.InputStream in)
Create the HierarchicalStreamReader with the stream parser reading from the input stream.- Parameters:
in
- theInputStream
with the data to parse
-
createWriter
public HierarchicalStreamWriter createWriter(java.io.Writer out)
Create the HierarchicalStreamWriter with the formatted writer.- Parameters:
out
- theWriter
to receive the formatted data- Returns:
- the HierarchicalStreamWriter
-
createWriter
public HierarchicalStreamWriter createWriter(java.io.OutputStream out)
Create the HierarchicalStreamWriter with the formatted writer.- Parameters:
out
- theOutputStream
to receive the formatted data- Returns:
- the HierarchicalStreamWriter
-
createParser
protected abstract org.xmlpull.v1.XmlPullParser createParser() throws org.xmlpull.v1.XmlPullParserException
Create the parser of the XPP implementation.- Throws:
org.xmlpull.v1.XmlPullParserException
- if the parser cannot be created- Since:
- 1.4
-
-