org.apache.camel.dataformat.bindy.fixed
Class BindyFixedLengthDataFormat

java.lang.Object
  extended by org.apache.camel.dataformat.bindy.fixed.BindyFixedLengthDataFormat
All Implemented Interfaces:
org.apache.camel.spi.DataFormat

public class BindyFixedLengthDataFormat
extends Object
implements org.apache.camel.spi.DataFormat

A data format ( DataFormat) using Bindy to marshal to and from Fixed Length


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

Constructor Detail

BindyFixedLengthDataFormat

public BindyFixedLengthDataFormat()

BindyFixedLengthDataFormat

public BindyFixedLengthDataFormat(String... packages)
Method Detail

marshal

public void marshal(org.apache.camel.Exchange exchange,
                    Object body,
                    OutputStream outputStream)
             throws Exception
Specified by:
marshal in interface org.apache.camel.spi.DataFormat
Throws:
Exception

unmarshal

public Object unmarshal(org.apache.camel.Exchange exchange,
                        InputStream inputStream)
                 throws Exception
Specified by:
unmarshal in interface org.apache.camel.spi.DataFormat
Throws:
Exception

getFactory

public BindyFixedLengthFactory getFactory(org.apache.camel.spi.PackageScanClassResolver resolver)
                                   throws Exception
Method used to create the singleton of the BindyCsvFactory

Throws:
Exception

setModelFactory

public void setModelFactory(BindyFixedLengthFactory modelFactory)

getPackages

public String[] getPackages()

setPackages

public void setPackages(String[] packages)


Apache CAMEL