public abstract class AbstractDriver extends java.lang.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(java.io.File in)
Create the HierarchicalStreamReader with the stream parser reading from a File.
|
HierarchicalStreamReader |
createReader(java.net.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(java.net.URL in)
createReader
in interface HierarchicalStreamDriver
in
- the URL
defining the location with the data to parsepublic HierarchicalStreamReader createReader(java.io.File in)
createReader
in interface HierarchicalStreamDriver
in
- the URL
defining the location with the data to parseCopyright © 2004–2021 XStream. All rights reserved.