@PrototypeScoped @Component public class XStreamBuilderImpl extends java.lang.Object implements XStreamBuilder
Modifier and Type | Field and Description |
---|---|
protected static char[] |
DEFAULT_LINE_INDENTER |
protected static java.lang.String |
DEFAULT_NEW_LINE |
protected static char[] |
INDENTED_LINE_INDENTER |
protected static java.lang.String |
INDENTED_NEW_LINE |
Constructor and Description |
---|
XStreamBuilderImpl(XStreamConverters converters,
TypeNameExtractor extractor) |
Modifier and Type | Method and Description |
---|---|
static XStreamBuilder |
cleanInstance(com.thoughtworks.xstream.converters.Converter... converters) |
com.thoughtworks.xstream.XStream |
configure(com.thoughtworks.xstream.XStream xstream) |
protected com.thoughtworks.xstream.io.HierarchicalStreamDriver |
getHierarchicalStreamDriver()
You can override this method for configuring Driver before serialization
|
XStreamBuilder |
indented() |
com.thoughtworks.xstream.XStream |
jsonInstance() |
XStreamBuilder |
withoutRoot() |
com.thoughtworks.xstream.XStream |
xmlInstance() |
protected static final java.lang.String DEFAULT_NEW_LINE
protected static final char[] DEFAULT_LINE_INDENTER
protected static final java.lang.String INDENTED_NEW_LINE
protected static final char[] INDENTED_LINE_INDENTER
public XStreamBuilderImpl(XStreamConverters converters, TypeNameExtractor extractor)
public static XStreamBuilder cleanInstance(com.thoughtworks.xstream.converters.Converter... converters)
public com.thoughtworks.xstream.XStream xmlInstance()
xmlInstance
in interface XStreamBuilder
public com.thoughtworks.xstream.XStream jsonInstance()
jsonInstance
in interface XStreamBuilder
public com.thoughtworks.xstream.XStream configure(com.thoughtworks.xstream.XStream xstream)
configure
in interface XStreamBuilder
protected com.thoughtworks.xstream.io.HierarchicalStreamDriver getHierarchicalStreamDriver()
public XStreamBuilder indented()
indented
in interface XStreamBuilder
public XStreamBuilder withoutRoot()
withoutRoot
in interface XStreamBuilder
Copyright © 2013 Caelum. All Rights Reserved.