Package com.thoughtworks.xstream.io.xml
Class StandardStaxDriver
- java.lang.Object
-
- com.thoughtworks.xstream.io.AbstractDriver
-
- com.thoughtworks.xstream.io.xml.AbstractXmlDriver
-
- com.thoughtworks.xstream.io.xml.StaxDriver
-
- com.thoughtworks.xstream.io.xml.StandardStaxDriver
-
- All Implemented Interfaces:
HierarchicalStreamDriver
public class StandardStaxDriver extends StaxDriver
A driver using the standard JDK StAX implementation provided by the Java runtime (since Java 6).In contrast to XMLInputFactory.newFactory() or XMLOutputFactory.newFactory() this implementation will ignore any implementations provided with the system properties javax.xml.stream.XMLInputFactory and javax.xml.stream.XMLOutputFactory, all implementations configured in lib/stax.properties or registered with the Service API.
- Since:
- 1.4.5
-
-
Constructor Summary
Constructors Constructor Description StandardStaxDriver()
StandardStaxDriver(NameCoder nameCoder)
StandardStaxDriver(QNameMap qnameMap)
StandardStaxDriver(QNameMap qnameMap, NameCoder nameCoder)
StandardStaxDriver(QNameMap qnameMap, XmlFriendlyNameCoder nameCoder)
Deprecated.As of 1.4.6 useStandardStaxDriver(QNameMap, NameCoder)
StandardStaxDriver(XmlFriendlyNameCoder nameCoder)
Deprecated.As of 1.4.6 useStandardStaxDriver(NameCoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.xml.stream.XMLInputFactory
createInputFactory()
protected javax.xml.stream.XMLOutputFactory
createOutputFactory()
-
Methods inherited from class com.thoughtworks.xstream.io.xml.StaxDriver
createParser, createParser, createParser, createReader, createReader, createReader, createReader, createStaxReader, createStaxWriter, createStaxWriter, createWriter, createWriter, getInputFactory, getOutputFactory, getQnameMap, isRepairingNamespace, setQnameMap, setRepairingNamespace
-
Methods inherited from class com.thoughtworks.xstream.io.xml.AbstractXmlDriver
xmlFriendlyReplacer
-
Methods inherited from class com.thoughtworks.xstream.io.AbstractDriver
getNameCoder
-
-
-
-
Constructor Detail
-
StandardStaxDriver
public StandardStaxDriver()
-
StandardStaxDriver
public StandardStaxDriver(QNameMap qnameMap, XmlFriendlyNameCoder nameCoder)
Deprecated.As of 1.4.6 useStandardStaxDriver(QNameMap, NameCoder)
-
StandardStaxDriver
public StandardStaxDriver(QNameMap qnameMap)
-
StandardStaxDriver
public StandardStaxDriver(XmlFriendlyNameCoder nameCoder)
Deprecated.As of 1.4.6 useStandardStaxDriver(NameCoder)
-
StandardStaxDriver
public StandardStaxDriver(NameCoder nameCoder)
- Since:
- 1.4.6
-
-
Method Detail
-
createInputFactory
protected javax.xml.stream.XMLInputFactory createInputFactory()
- Overrides:
createInputFactory
in classStaxDriver
-
createOutputFactory
protected javax.xml.stream.XMLOutputFactory createOutputFactory()
- Overrides:
createOutputFactory
in classStaxDriver
-
-