public class PrettyStaxDriver
extends com.thoughtworks.xstream.io.xml.StaxDriver
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) |
Modifier and Type | Method and Description |
---|---|
com.thoughtworks.xstream.io.HierarchicalStreamWriter |
createWriter(java.io.OutputStream out) |
com.thoughtworks.xstream.io.HierarchicalStreamWriter |
createWriter(java.io.Writer out) |
createInputFactory, createOutputFactory, 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)
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