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

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

public class BindyFixedLengthDataFormat
extends BindyAbstractDataFormat

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


Field Summary
static String CAMEL_BINDY_FIXED_LENGTH_FOOTER
           
static String CAMEL_BINDY_FIXED_LENGTH_HEADER
           
 
Constructor Summary
BindyFixedLengthDataFormat()
           
BindyFixedLengthDataFormat(Class<?> type)
           
BindyFixedLengthDataFormat(String... packages)
           
 
Method Summary
protected  Map<String,Object> createModel(BindyFixedLengthFactory factory, String line, int count)
           
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
extractUnmarshalResult, getClassType, getFactory, getLocale, getPackages, setClassType, setLocale, setModelFactory, setPackages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CAMEL_BINDY_FIXED_LENGTH_HEADER

public static final String CAMEL_BINDY_FIXED_LENGTH_HEADER
See Also:
Constant Field Values

CAMEL_BINDY_FIXED_LENGTH_FOOTER

public static final String CAMEL_BINDY_FIXED_LENGTH_FOOTER
See Also:
Constant Field Values
Constructor Detail

BindyFixedLengthDataFormat

public BindyFixedLengthDataFormat()

BindyFixedLengthDataFormat

public BindyFixedLengthDataFormat(String... packages)

BindyFixedLengthDataFormat

public BindyFixedLengthDataFormat(Class<?> type)
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

createModel

protected Map<String,Object> createModel(BindyFixedLengthFactory factory,
                                         String line,
                                         int count)
                                  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