public class PrettyStaxDriver
extends com.thoughtworks.xstream.io.xml.StandardStaxDriver
This class converts the object names that are to be used for xml from camel case to a lowercase hyphen separated format. Additionally any class fields configured as CDATA are output as CDATA in the XML.
Constructor and Description |
---|
PrettyStaxDriver() |
PrettyStaxDriver(java.util.Collection<java.lang.String> pCdataFields,
boolean jdkOnlyStax) |
Modifier and Type | Method and Description |
---|---|
protected javax.xml.stream.XMLInputFactory |
createInputFactory() |
protected javax.xml.stream.XMLOutputFactory |
createOutputFactory() |
com.thoughtworks.xstream.io.HierarchicalStreamWriter |
createWriter(java.io.OutputStream out) |
com.thoughtworks.xstream.io.HierarchicalStreamWriter |
createWriter(java.io.Writer out) |
createParser, createParser, createParser, createReader, createReader, createReader, createReader, createStaxReader, createStaxWriter, createStaxWriter, getInputFactory, getOutputFactory, getQnameMap, isRepairingNamespace, setQnameMap, setRepairingNamespace
public PrettyStaxDriver()
public PrettyStaxDriver(java.util.Collection<java.lang.String> pCdataFields, boolean jdkOnlyStax)
public com.thoughtworks.xstream.io.HierarchicalStreamWriter createWriter(java.io.OutputStream out)
createWriter
in interface com.thoughtworks.xstream.io.HierarchicalStreamDriver
createWriter
in class com.thoughtworks.xstream.io.xml.StaxDriver
public com.thoughtworks.xstream.io.HierarchicalStreamWriter createWriter(java.io.Writer out)
createWriter
in interface com.thoughtworks.xstream.io.HierarchicalStreamDriver
createWriter
in class com.thoughtworks.xstream.io.xml.StaxDriver
protected javax.xml.stream.XMLInputFactory createInputFactory()
createInputFactory
in class com.thoughtworks.xstream.io.xml.StandardStaxDriver
protected javax.xml.stream.XMLOutputFactory createOutputFactory()
createOutputFactory
in class com.thoughtworks.xstream.io.xml.StandardStaxDriver