org.apache.camel.dataformat.xstream
Class XStreamDataFormat
java.lang.Object
org.apache.camel.dataformat.xstream.AbstractXStreamWrapper
org.apache.camel.dataformat.xstream.XStreamDataFormat
- All Implemented Interfaces:
- org.apache.camel.spi.DataFormat
public class XStreamDataFormat
- extends AbstractXStreamWrapper
A data format
(DataFormat
) using XStream to marshal to and from XML
- Version:
Methods inherited from class org.apache.camel.dataformat.xstream.AbstractXStreamWrapper |
createXStream, getAliases, getConverters, getImplicitCollections, getOmitFields, getStaxConverter, getXstream, getXStream, getXstreamDriver, marshal, setAliases, setConverters, setImplicitCollections, setOmitFields, setStaxConverter, setXstream, setXStream, setXstreamDriver, unmarshal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XStreamDataFormat
public XStreamDataFormat()
XStreamDataFormat
public XStreamDataFormat(com.thoughtworks.xstream.XStream xstream)
setEncoding
public void setEncoding(String encoding)
getEncoding
public String getEncoding()
processAnnotations
public static XStreamDataFormat processAnnotations(org.apache.camel.spi.ClassResolver resolver,
Iterable<Class<?>> types)
- A factory method which takes a collection of types to be annotated
processAnnotations
public static XStreamDataFormat processAnnotations(org.apache.camel.spi.ClassResolver resolver,
Class<?>... types)
- A factory method which takes a number of types to be annotated
updateCharactorEncodingInfo
protected void updateCharactorEncodingInfo(org.apache.camel.Exchange exchange)
createHierarchicalStreamWriter
protected com.thoughtworks.xstream.io.HierarchicalStreamWriter createHierarchicalStreamWriter(org.apache.camel.Exchange exchange,
Object body,
OutputStream stream)
throws XMLStreamException
- Specified by:
createHierarchicalStreamWriter
in class AbstractXStreamWrapper
- Throws:
XMLStreamException
createHierarchicalStreamReader
protected com.thoughtworks.xstream.io.HierarchicalStreamReader createHierarchicalStreamReader(org.apache.camel.Exchange exchange,
InputStream stream)
throws XMLStreamException
- Specified by:
createHierarchicalStreamReader
in class AbstractXStreamWrapper
- Throws:
XMLStreamException
Apache CAMEL