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:
MXParserDomDriver, XppDomDriver
An abstract base class for a driver using an XPP DOM implementation.
- Since:
- 1.4
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractXppDomDriver(NameCoder nameCoder) Construct an AbstractXppDomDriver. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract org.xmlpull.v1.XmlPullParserCreate the parser of the XPP implementation.Create the HierarchicalStreamReader with the stream parser reading from the input stream.createReader(Reader in) Create the HierarchicalStreamReader with the stream parser reading from the IO reader.createWriter(OutputStream out) Create the HierarchicalStreamWriter with the formatted writer.createWriter(Writer out) Create the HierarchicalStreamWriter with the formatted writer.Methods inherited from class AbstractXmlDriver
xmlFriendlyReplacerMethods inherited from class AbstractDriver
createReader, createReader, getNameCoder
-
Constructor Details
-
AbstractXppDomDriver
Construct an AbstractXppDomDriver.- Parameters:
nameCoder- the replacer for XML friendly names- Since:
- 1.4
-
-
Method Details
-
createReader
Create the HierarchicalStreamReader with the stream parser reading from the IO reader.- Parameters:
in- theReaderwith the data to parse- Returns:
- the HierarchicalStreamReader
-
createReader
Create the HierarchicalStreamReader with the stream parser reading from the input stream.- Parameters:
in- theInputStreamwith the data to parse
-
createWriter
Create the HierarchicalStreamWriter with the formatted writer.- Parameters:
out- theWriterto receive the formatted data- Returns:
- the HierarchicalStreamWriter
-
createWriter
Create the HierarchicalStreamWriter with the formatted writer.- Parameters:
out- theOutputStreamto receive the formatted data- Returns:
- the HierarchicalStreamWriter
-
createParser
protected abstract org.xmlpull.v1.XmlPullParser createParser() throws org.xmlpull.v1.XmlPullParserExceptionCreate the parser of the XPP implementation.- Throws:
org.xmlpull.v1.XmlPullParserException- if the parser cannot be created- Since:
- 1.4
-