public abstract class AbstractDriver extends Object implements HierarchicalStreamDriver
HierarchicalStreamDriver
should rather be derived from this class then implementing
the interface directly.Constructor and Description |
---|
AbstractDriver()
Creates an AbstractDriver with a NameCoder that does nothing.
|
AbstractDriver(NameCoder nameCoder)
Creates an AbstractDriver with a provided
NameCoder . |
Modifier and Type | Method and Description |
---|---|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createReader, createReader, createWriter, createWriter
public AbstractDriver()
protected NameCoder getNameCoder()
public HierarchicalStreamReader createReader(URL in)
createReader
in interface HierarchicalStreamDriver
in
- the URL
defining the location with the data to parsepublic HierarchicalStreamReader createReader(File in)
createReader
in interface HierarchicalStreamDriver
in
- the URL
defining the location with the data to parseCopyright © 2004–2016 XStream. All rights reserved.