|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.xstream.io.AbstractDriver
com.thoughtworks.xstream.io.xml.AbstractXmlDriver
com.thoughtworks.xstream.io.xml.AbstractXppDriver
public abstract class AbstractXppDriver
An abstract base class for a driver using an XPP implementation.
Constructor Summary | |
---|---|
AbstractXppDriver(NameCoder nameCoder)
Construct an AbstractXppDriver. |
Method Summary | |
---|---|
protected abstract org.xmlpull.v1.XmlPullParser |
createParser()
Create the parser of the XPP implementation. |
HierarchicalStreamReader |
createReader(InputStream in)
Create the HierarchicalStreamReader with the stream parser reading from the input stream. |
HierarchicalStreamReader |
createReader(Reader in)
Create the HierarchicalStreamReader with the stream parser reading from the IO reader. |
HierarchicalStreamWriter |
createWriter(OutputStream out)
Create the HierarchicalStreamWriter with the formatted writer. |
HierarchicalStreamWriter |
createWriter(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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractXppDriver(NameCoder nameCoder)
nameCoder
- the replacer for XML friendly tag and attribute namesMethod Detail |
---|
public HierarchicalStreamReader createReader(Reader in)
in
- the Reader
with the data to parse
public HierarchicalStreamReader createReader(InputStream in)
in
- the InputStream
with the data to parsepublic HierarchicalStreamWriter createWriter(Writer out)
out
- the Writer
to receive the formatted data
public HierarchicalStreamWriter createWriter(OutputStream out)
out
- the OutputStream
to receive the formatted data
protected abstract org.xmlpull.v1.XmlPullParser createParser() throws org.xmlpull.v1.XmlPullParserException
org.xmlpull.v1.XmlPullParserException
- if the parser cannot be created
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |