org.apache.camel.dataformat.xstream
Class XStreamDataFormat

java.lang.Object
  extended by org.apache.camel.dataformat.xstream.AbstractXStreamWrapper
      extended by 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 $

Constructor Summary
XStreamDataFormat()
           
XStreamDataFormat(com.thoughtworks.xstream.XStream xstream)
           
 
Method Summary
protected  com.thoughtworks.xstream.io.HierarchicalStreamReader createHierarchicalStreamReader(Exchange exchange, InputStream stream)
           
protected  com.thoughtworks.xstream.io.HierarchicalStreamWriter createHierarchicalStreamWriter(Exchange exchange, Object body, OutputStream stream)
           
static XStreamDataFormat processAnnotations(Class<?>... types)
          A factory method which takes a number of types to be annotated
static XStreamDataFormat processAnnotations(Iterable<Class<?>> types)
          A factory method which takes a collection of types to be annotated
 
Methods inherited from class org.apache.camel.dataformat.xstream.AbstractXStreamWrapper
createXStream, getStaxConverter, getXStream, marshal, setStaxConverter, setXStream, unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XStreamDataFormat

public XStreamDataFormat()

XStreamDataFormat

public XStreamDataFormat(com.thoughtworks.xstream.XStream xstream)
Method Detail

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