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:
org.apache.camel.spi.DataFormat

public class XStreamDataFormat
extends AbstractXStreamWrapper

A data format (DataFormat) using XStream to marshal to and from XML

Version:

Constructor Summary
XStreamDataFormat()
           
XStreamDataFormat(com.thoughtworks.xstream.XStream xstream)
           
 
Method Summary
protected  com.thoughtworks.xstream.io.HierarchicalStreamReader createHierarchicalStreamReader(org.apache.camel.Exchange exchange, InputStream stream)
           
protected  com.thoughtworks.xstream.io.HierarchicalStreamWriter createHierarchicalStreamWriter(org.apache.camel.Exchange exchange, Object body, OutputStream stream)
           
 String getEncoding()
           
static XStreamDataFormat processAnnotations(org.apache.camel.spi.ClassResolver resolver, Class<?>... types)
          A factory method which takes a number of types to be annotated
static XStreamDataFormat processAnnotations(org.apache.camel.spi.ClassResolver resolver, Iterable<Class<?>> types)
          A factory method which takes a collection of types to be annotated
 void setEncoding(String encoding)
           
protected  void updateCharactorEncodingInfo(org.apache.camel.Exchange exchange)
           
 
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
 

Constructor Detail

XStreamDataFormat

public XStreamDataFormat()

XStreamDataFormat

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

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