org.apache.camel.dataformat.bindy.csv
Class BindyCsvDataFormat

java.lang.Object
  extended by org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat
All Implemented Interfaces:
DataFormat

public class BindyCsvDataFormat
extends Object
implements DataFormat

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


Constructor Summary
BindyCsvDataFormat()
           
BindyCsvDataFormat(String... packages)
           
 
Method Summary
 BindyCsvFactory getFactory(PackageScanClassResolver resolver)
          Method used to create the singleton of the BindyCsvFactory
 String[] getPackages()
           
 void marshal(Exchange exchange, Object body, OutputStream outputStream)
           
 void setModelFactory(BindyCsvFactory modelFactory)
           
 void setPackages(String[] packages)
           
 Object unmarshal(Exchange exchange, InputStream inputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindyCsvDataFormat

public BindyCsvDataFormat()

BindyCsvDataFormat

public BindyCsvDataFormat(String... packages)
Method Detail

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 BindyCsvFactory getFactory(PackageScanClassResolver resolver)
                           throws Exception
Method used to create the singleton of the BindyCsvFactory

Throws:
Exception

setModelFactory

public void setModelFactory(BindyCsvFactory modelFactory)

getPackages

public String[] getPackages()

setPackages

public void setPackages(String[] packages)


Apache CAMEL