|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.xstream.io.AbstractDriver
public abstract class AbstractDriver
Abstract base class for all HierarchicalStreamDriver implementations. Implementations of
HierarchicalStreamDriver
should rather be derived from this class then implementing
the interface directly.
Constructor Summary | |
---|---|
AbstractDriver()
Creates an AbstractDriver with a NameCoder that does nothing. |
|
AbstractDriver(NameCoder nameCoder)
Creates an AbstractDriver with a provided NameCoder . |
Method Summary | |
---|---|
HierarchicalStreamReader |
createReader(File in)
Create the HierarchicalStreamReader with the stream parser reading from a File. |
HierarchicalStreamReader |
createReader(URL in)
Create the HierarchicalStreamReader with the stream parser reading from a URL. |
protected NameCoder |
getNameCoder()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.thoughtworks.xstream.io.HierarchicalStreamDriver |
---|
createReader, createReader, createWriter, createWriter |
Constructor Detail |
---|
public AbstractDriver()
public AbstractDriver(NameCoder nameCoder)
NameCoder
.
nameCoder
- the name coder for the target formatMethod Detail |
---|
protected NameCoder getNameCoder()
public HierarchicalStreamReader createReader(URL in)
createReader
in interface HierarchicalStreamDriver
in
- the URL
defining the location with the data to parse
public HierarchicalStreamReader createReader(File in)
createReader
in interface HierarchicalStreamDriver
in
- the URL
defining the location with the data to parse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |