org.apache.camel.spi
Interface DataFormat

All Known Implementing Classes:
ArtixDSDataFormat, CsvDataFormat, DataFormatType, JaxbDataFormat, SerializationDataFormat, SerializationDataFormat, StringDataFormat, StringDataFormat, XMLBeansDataFormat, XStreamDataFormat

public interface DataFormat

Represents a data format used to marshal objects to and from streams such as Java Serialization or using JAXB2 to encode/decode objects using XML or using SOAP encoding.

Version:
$Revision: 36321 $

Method Summary
 void marshal(Exchange exchange, Object graph, OutputStream stream)
          Marshals the object to the given Stream.
 Object unmarshal(Exchange exchange, InputStream stream)
          Unmarshals the given stream into an object.
 

Method Detail

marshal

void marshal(Exchange exchange,
             Object graph,
             OutputStream stream)
             throws Exception
Marshals the object to the given Stream.

Throws:
Exception

unmarshal

Object unmarshal(Exchange exchange,
                 InputStream stream)
                 throws Exception
Unmarshals the given stream into an object.

Throws:
Exception


Copyright © 2008 IONA Open Source Community. All Rights Reserved.