com.thoughtworks.xstream.io.xml
Class StaxDriver
java.lang.Object
com.thoughtworks.xstream.io.xml.StaxDriver
- All Implemented Interfaces:
- HierarchicalStreamDriver
- public class StaxDriver
- extends java.lang.Object
- implements HierarchicalStreamDriver
A driver using the StAX API
- Version:
- $Revision: 1.3 $
- Author:
- James Strachan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaxDriver
public StaxDriver()
StaxDriver
public StaxDriver(QNameMap qnameMap)
createReader
public HierarchicalStreamReader createReader(java.io.Reader xml)
- Specified by:
createReader
in interface HierarchicalStreamDriver
createWriter
public HierarchicalStreamWriter createWriter(java.io.Writer out)
createStaxReader
public StaxReader createStaxReader(javax.xml.stream.XMLStreamReader in)
createStaxWriter
public StaxWriter createStaxWriter(javax.xml.stream.XMLStreamWriter out,
boolean writeStartEndDocument)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
createStaxWriter
public StaxWriter createStaxWriter(javax.xml.stream.XMLStreamWriter out)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
getQnameMap
public QNameMap getQnameMap()
setQnameMap
public void setQnameMap(QNameMap qnameMap)
getInputFactory
public javax.xml.stream.XMLInputFactory getInputFactory()
getOutputFactory
public javax.xml.stream.XMLOutputFactory getOutputFactory()
isRepairingNamespace
public boolean isRepairingNamespace()
setRepairingNamespace
public void setRepairingNamespace(boolean repairingNamespace)
createParser
protected javax.xml.stream.XMLStreamReader createParser(java.io.Reader xml)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
Joe Walnes, http://xstream.codehaus.org/