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:
- DataFormat
public class XStreamDataFormat
- extends AbstractXStreamWrapper
A data format
(DataFormat) using XStream to marshal to and from XML
- Version:
- $Revision: 748596 $
| 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)
processAnnotations
public static XStreamDataFormat processAnnotations(Iterable<Class<?>> types)
- A factory method which takes a collection of types to be annotated
processAnnotations
public static XStreamDataFormat processAnnotations(Class<?>... types)
- A factory method which takes a number of types to be annotated
createHierarchicalStreamWriter
protected com.thoughtworks.xstream.io.HierarchicalStreamWriter createHierarchicalStreamWriter(Exchange exchange,
Object body,
OutputStream stream)
throws XMLStreamException
- Specified by:
createHierarchicalStreamWriter in class AbstractXStreamWrapper
- Throws:
XMLStreamException
createHierarchicalStreamReader
protected com.thoughtworks.xstream.io.HierarchicalStreamReader createHierarchicalStreamReader(Exchange exchange,
InputStream stream)
throws XMLStreamException
- Specified by:
createHierarchicalStreamReader in class AbstractXStreamWrapper
- Throws:
XMLStreamException
Apache CAMEL