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


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

This annotation represents the root class of the model. When a CSV, fixed-length record must be described in the model we will use this annotation and the separator (for csv record) to know how to split the data during the unmarshal process The separator (mandatory) The name is optional and could be used in the future to bind a property which a different name The skipfirstline (optional) allows to skip the first line of the file/content received The crlf (optional) is used to add a new line after a record. By default, the value is WINDOWS


Required Element Summary
 String separator
          Separator used to split a record in tokens (mandatory)
 
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
 String name
          Name describing the record (optional)
 boolean skipFirstLine
          The skipFirstLine parameter will allow to skip or not the first line of a CSV file.
 

Element Detail

separator

public abstract String separator
Separator used to split a record in tokens (mandatory)

Returns:
String

name

public abstract String name
Name describing the record (optional)

Returns:
String
Default:
""

skipFirstLine

public abstract boolean skipFirstLine
The skipFirstLine parameter will allow to skip or not the first line of a CSV file. This line often contains columns definition

Returns:
boolean
Default:
false

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"


Apache CAMEL