@Documented @Retention(value=RUNTIME) public @interface CsvRecord
| Modifier and Type | Required Element and Description |
|---|---|
String |
separator
Separator used to split a record in tokens (mandatory) - can be ',' or ';' or 'anything'.
|
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
allowEmptyStream
The allowEmptyStream parameter will allow to prcoess the unavaiable stream for CSV file.
|
boolean |
autospanLine
Last record spans rest of line (optional) - if enabled then the last column is auto spanned to end of line, for
example if its a comment, etc this allows the line to contain all characters, also the delimiter char.
|
String |
crlf
Character to be used to add a carriage return after each record (optional) - allow to define the carriage return
character to use.
|
boolean |
endWithLineBreak
The endWithLineBreak parameter flags if the CSV file should end with a line break or not (optional)
|
boolean |
generateHeaderColumns
The generateHeaderColumns parameter allow to add in the CSV generated the header containing names of the columns
|
boolean |
isOrdered
Indicates if the message must be ordered in output
|
String |
name
Name describing the record (optional)
|
String |
quote
Whether to marshal columns with the given quote character (optional) - allow to specify a quote character of the
fields when CSV is generated.
|
boolean |
quoting
Indicate if the values (and headers) must be quoted when marshaling (optional)
|
boolean |
quotingEscaped
Indicate if the values must be escaped when quoting (optional)
|
boolean |
removeQuotes
The remove quotes parameter flags if unmarshalling should try to remove quotes for each field
|
boolean |
skipField
The skipField parameter will allow to skip fields of a CSV file.
|
boolean |
skipFirstLine
The skipFirstLine parameter will allow to skip or not the first line of a CSV file.
|
public abstract String separator
public abstract String name
public abstract boolean skipFirstLine
public abstract boolean skipField
public abstract String crlf
public abstract boolean generateHeaderColumns
public abstract boolean isOrdered
public abstract String quote
public abstract boolean quoting
public abstract boolean quotingEscaped
public abstract boolean autospanLine
public abstract boolean allowEmptyStream
Apache Camel