org.apache.camel.dataformat.xstream
Class JsonDataFormat

java.lang.Object
  extended by org.apache.camel.dataformat.xstream.AbstractXStreamWrapper
      extended by org.apache.camel.dataformat.xstream.JsonDataFormat
All Implemented Interfaces:
DataFormat

public class JsonDataFormat
extends AbstractXStreamWrapper

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

Version:
$Revision: 20332 $

Constructor Summary
JsonDataFormat()
           
 
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)
           
protected  com.thoughtworks.xstream.XStream createXStream(ClassResolver resolver)
           
 
Methods inherited from class org.apache.camel.dataformat.xstream.AbstractXStreamWrapper
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

JsonDataFormat

public JsonDataFormat()
Method Detail

createXStream

protected com.thoughtworks.xstream.XStream createXStream(ClassResolver resolver)
Overrides:
createXStream in class AbstractXStreamWrapper

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