@Metadata(firstVersion="1.3.0", label="dataformat,transformation,csv", title="CSV") public class CsvDataFormat extends DataFormatDefinition
Constructor and Description |
---|
CsvDataFormat() |
CsvDataFormat(boolean lazyLoad) |
CsvDataFormat(String delimiter) |
Modifier and Type | Method and Description |
---|---|
String |
getAllowMissingColumnNames() |
String |
getCaptureHeaderRecord() |
String |
getCommentMarker() |
String |
getCommentMarkerDisabled() |
String |
getDelimiter() |
String |
getEscape() |
String |
getEscapeDisabled() |
String |
getFormatName() |
String |
getFormatRef() |
List<String> |
getHeader() |
String |
getHeaderDisabled()
Use for disabling headers
|
String |
getIgnoreEmptyLines() |
String |
getIgnoreHeaderCase() |
String |
getIgnoreSurroundingSpaces() |
String |
getLazyLoad() |
String |
getMarshallerFactoryRef()
Returns the
CsvMarshallerFactory reference. |
String |
getNullString() |
String |
getNullStringDisabled() |
String |
getQuote() |
String |
getQuoteDisabled() |
String |
getQuoteMode() |
String |
getRecordConverterRef() |
String |
getRecordSeparator() |
String |
getRecordSeparatorDisabled() |
String |
getSkipHeaderRecord() |
String |
getTrailingDelimiter() |
String |
getTrim() |
String |
getUseMaps() |
String |
getUseOrderedMaps() |
void |
setAllowMissingColumnNames(String allowMissingColumnNames)
Whether to allow missing column names.
|
void |
setCaptureHeaderRecord(String captureHeaderRecord)
Whether the unmarshalling should capture the header record and store it in the message header
|
void |
setCommentMarker(String commentMarker)
Sets the comment marker of the reference format.
|
void |
setCommentMarkerDisabled(String commentMarkerDisabled)
Disables the comment marker of the reference format.
|
void |
setDelimiter(String delimiter)
Sets the delimiter to use.
|
void |
setEscape(String escape)
Sets the escape character to use
|
void |
setEscapeDisabled(String escapeDisabled)
Use for disabling using escape character
|
void |
setFormatName(String formatName)
The name of the format to use, the default value is CSVFormat.DEFAULT
|
void |
setFormatRef(String formatRef)
The reference format to use, it will be updated with the other format options, the default value is
CSVFormat.DEFAULT
|
void |
setHeader(List<String> header)
To configure the CSV headers
|
void |
setHeaderDisabled(String headerDisabled) |
void |
setIgnoreEmptyLines(String ignoreEmptyLines)
Whether to ignore empty lines.
|
void |
setIgnoreHeaderCase(String ignoreHeaderCase)
Sets whether or not to ignore case when accessing header names.
|
void |
setIgnoreSurroundingSpaces(String ignoreSurroundingSpaces)
Whether to ignore surrounding spaces
|
void |
setLazyLoad(String lazyLoad)
Whether the unmarshalling should produce an iterator that reads the lines on the fly or if all the lines must be
read at one.
|
void |
setMarshallerFactoryRef(String marshallerFactoryRef)
Sets the implementation of the CsvMarshallerFactory interface which is able to customize
marshalling/unmarshalling behavior by extending CsvMarshaller or creating it from scratch.
|
void |
setNullString(String nullString)
Sets the null string
|
void |
setNullStringDisabled(String nullStringDisabled)
Used to disable null strings
|
void |
setQuote(String quote)
Sets the quote which by default is "
|
void |
setQuoteDisabled(String quoteDisabled)
Used to disable quotes
|
void |
setQuoteMode(String quoteMode)
Sets the quote mode
|
void |
setRecordConverterRef(String recordConverterRef)
Refers to a custom CsvRecordConverter to lookup from the registry to use.
|
void |
setRecordSeparator(String recordSeparator)
Sets the record separator (aka new line) which by default is new line characters (CRLF)
|
void |
setRecordSeparatorDisabled(String recordSeparatorDisabled)
Used for disabling record separator
|
void |
setSkipHeaderRecord(String skipHeaderRecord)
Whether to skip the header record in the output
|
void |
setTrailingDelimiter(String trailingDelimiter)
Sets whether or not to add a trailing delimiter.
|
void |
setTrim(String trim)
Sets whether or not to trim leading and trailing blanks.
|
void |
setUseMaps(String useMaps)
Whether the unmarshalling should produce maps (HashMap)for the lines values instead of lists.
|
void |
setUseOrderedMaps(String useOrderedMaps)
Whether the unmarshalling should produce ordered maps (LinkedHashMap) for the lines values instead of lists.
|
getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatName
getId, setId
public CsvDataFormat()
public CsvDataFormat(String delimiter)
public CsvDataFormat(boolean lazyLoad)
public void setMarshallerFactoryRef(String marshallerFactoryRef)
marshallerFactoryRef
- the CsvMarshallerFactory
reference.public String getMarshallerFactoryRef()
CsvMarshallerFactory
reference.CsvMarshallerFactory
or null
if none has been specified.public String getFormatRef()
public void setFormatRef(String formatRef)
public String getFormatName()
public void setFormatName(String formatName)
public String getCommentMarkerDisabled()
public void setCommentMarkerDisabled(String commentMarkerDisabled)
public String getCommentMarker()
public void setCommentMarker(String commentMarker)
public String getDelimiter()
public void setDelimiter(String delimiter)
public String getEscapeDisabled()
public void setEscapeDisabled(String escapeDisabled)
public String getEscape()
public void setEscape(String escape)
public String getHeaderDisabled()
public void setHeaderDisabled(String headerDisabled)
public String getAllowMissingColumnNames()
public void setAllowMissingColumnNames(String allowMissingColumnNames)
public String getIgnoreEmptyLines()
public void setIgnoreEmptyLines(String ignoreEmptyLines)
public String getIgnoreSurroundingSpaces()
public void setIgnoreSurroundingSpaces(String ignoreSurroundingSpaces)
public String getNullStringDisabled()
public void setNullStringDisabled(String nullStringDisabled)
public String getNullString()
public void setNullString(String nullString)
public String getQuoteDisabled()
public void setQuoteDisabled(String quoteDisabled)
public String getQuote()
public void setQuote(String quote)
public String getRecordSeparatorDisabled()
public void setRecordSeparatorDisabled(String recordSeparatorDisabled)
public String getRecordSeparator()
public void setRecordSeparator(String recordSeparator)
public String getSkipHeaderRecord()
public void setSkipHeaderRecord(String skipHeaderRecord)
public String getQuoteMode()
public void setQuoteMode(String quoteMode)
public String getLazyLoad()
public void setLazyLoad(String lazyLoad)
public String getUseMaps()
public void setUseMaps(String useMaps)
public String getUseOrderedMaps()
public void setUseOrderedMaps(String useOrderedMaps)
public String getRecordConverterRef()
public void setRecordConverterRef(String recordConverterRef)
public void setTrim(String trim)
public String getTrim()
public void setIgnoreHeaderCase(String ignoreHeaderCase)
public String getIgnoreHeaderCase()
public void setTrailingDelimiter(String trailingDelimiter)
public String getTrailingDelimiter()
public String getCaptureHeaderRecord()
public void setCaptureHeaderRecord(String captureHeaderRecord)
Apache Camel