com.thoughtworks.xstream.io
Class AbstractDriver

java.lang.Object
  extended by com.thoughtworks.xstream.io.AbstractDriver
All Implemented Interfaces:
HierarchicalStreamDriver
Direct Known Subclasses:
AbstractXmlDriver, JettisonMappedXmlDriver

public abstract class AbstractDriver
extends Object
implements HierarchicalStreamDriver

Abstract base class for all HierarchicalStreamDriver implementations. Implementations of HierarchicalStreamDriver should rather be derived from this class then implementing the interface directly.

Since:
1.4
Author:
Jörg Schaible

Constructor Summary
AbstractDriver()
          Creates an AbstractDriver with a NameCoder that does nothing.
AbstractDriver(NameCoder nameCoder)
          Creates an AbstractDriver with a provided NameCoder.
 
Method Summary
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, createReader, createReader, createWriter, createWriter
 

Constructor Detail

AbstractDriver

public AbstractDriver()
Creates an AbstractDriver with a NameCoder that does nothing.


AbstractDriver

public AbstractDriver(NameCoder nameCoder)
Creates an AbstractDriver with a provided NameCoder.

Parameters:
nameCoder - the name coder for the target format
Method Detail

getNameCoder

protected NameCoder getNameCoder()


Copyright © 2004-2011 XStream. All Rights Reserved.