org.apache.camel.dataformat.bindy.kvp
Class BindyKeyValuePairDataFormat
java.lang.Object
org.apache.camel.dataformat.bindy.kvp.BindyKeyValuePairDataFormat
- All Implemented Interfaces:
- DataFormat
public class BindyKeyValuePairDataFormat
- extends Object
- implements DataFormat
A data format (
DataFormat) using Bindy to marshal to and from CSV files
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BindyKeyValuePairDataFormat
public BindyKeyValuePairDataFormat()
BindyKeyValuePairDataFormat
public BindyKeyValuePairDataFormat(String... packages)
marshal
public void marshal(Exchange exchange,
Object body,
OutputStream outputStream)
throws Exception
- Specified by:
marshal in interface DataFormat
- Throws:
Exception
unmarshal
public Object unmarshal(Exchange exchange,
InputStream inputStream)
throws Exception
- Specified by:
unmarshal in interface DataFormat
- Throws:
Exception
getFactory
public BindyKeyValuePairFactory getFactory(PackageScanClassResolver resolver)
throws Exception
- Method used to create the singleton of the BindyKeyValuePairFactory
- Throws:
Exception
setModelFactory
public void setModelFactory(BindyKeyValuePairFactory modelFactory)
getPackages
public String[] getPackages()
setPackages
public void setPackages(String... packages)
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.