org.apache.camel.dataformat.bindy.kvp
Class BindyKeyValuePairDataFormat

java.lang.Object
  extended by org.apache.camel.dataformat.bindy.BindyAbstractDataFormat
      extended by org.apache.camel.dataformat.bindy.kvp.BindyKeyValuePairDataFormat
All Implemented Interfaces:
org.apache.camel.spi.DataFormat

public class BindyKeyValuePairDataFormat
extends BindyAbstractDataFormat

A data format ( DataFormat) using Bindy to marshal to and from CSV files


Constructor Summary
BindyKeyValuePairDataFormat()
           
BindyKeyValuePairDataFormat(String... packages)
           
 
Method Summary
protected  BindyAbstractFactory createModelFactory(org.apache.camel.spi.PackageScanClassResolver resolver)
           
 void marshal(org.apache.camel.Exchange exchange, Object body, OutputStream outputStream)
           
 Object unmarshal(org.apache.camel.Exchange exchange, InputStream inputStream)
           
 
Methods inherited from class org.apache.camel.dataformat.bindy.BindyAbstractDataFormat
getFactory, getLocale, getPackages, setLocale, setModelFactory, setPackages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindyKeyValuePairDataFormat

public BindyKeyValuePairDataFormat()

BindyKeyValuePairDataFormat

public BindyKeyValuePairDataFormat(String... packages)
Method Detail

marshal

public void marshal(org.apache.camel.Exchange exchange,
                    Object body,
                    OutputStream outputStream)
             throws Exception
Throws:
Exception

unmarshal

public Object unmarshal(org.apache.camel.Exchange exchange,
                        InputStream inputStream)
                 throws Exception
Throws:
Exception

createModelFactory

protected BindyAbstractFactory createModelFactory(org.apache.camel.spi.PackageScanClassResolver resolver)
                                           throws Exception
Specified by:
createModelFactory in class BindyAbstractDataFormat
Throws:
Exception


Apache CAMEL