org.apache.camel.dataformat.bindy.annotation
Annotation Type FixedLengthRecord


@Documented
@Retention(value=RUNTIME)
public @interface FixedLengthRecord

This annotation represents the root class of the model. When a fixed-length record must be described in the model we will use this annotation to split the data during the unmarshal process.


Optional Element Summary
 String crlf
          Character to be used to add a carriage return after each record (optional) Three values can be used : WINDOWS, UNIX or MAC
 boolean hasFooter
           
 boolean hasHeader
           
 int length
          The fixed length of the record.
 String name
          Name describing the record (optional)
 char paddingChar
          The char to pad with.
 

name

public abstract String name
Name describing the record (optional)

Returns:
String
Default:
""

crlf

public abstract String crlf
Character to be used to add a carriage return after each record (optional) Three values can be used : WINDOWS, UNIX or MAC

Returns:
String
Default:
"WINDOWS"

paddingChar

public abstract char paddingChar
The char to pad with.

Returns:
the char to pad with if the record is set to a fixed length;
Default:
32

length

public abstract int length
The fixed length of the record. It means that the record will always be that long padded with {#paddingChar()}'s

Returns:
the length of the record.
Default:
0

hasHeader

public abstract boolean hasHeader
Default:
false

hasFooter

public abstract boolean hasFooter
Default:
false


Apache CAMEL