Class UniVocityCsvDataFormat.Builder
java.lang.Object
org.apache.camel.model.dataformat.UniVocityCsvDataFormat.Builder
- All Implemented Interfaces:
DataFormatBuilder<UniVocityCsvDataFormat>
- Enclosing class:
- UniVocityCsvDataFormat
Builder
is a specific builder for UniVocityCsvDataFormat
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasMap
(boolean asMap) Whether the unmarshalling should produce maps for the lines values instead of lists.Whether the unmarshalling should produce maps for the lines values instead of lists.The comment symbol.The delimiter of valuesemptyValue
(String emptyValue) The String representation of an empty valueend()
Ends the build of the data format.headerExtractionEnabled
(boolean headerExtractionEnabled) Whether or not the header must be read in the first line of the test documentheaderExtractionEnabled
(String headerExtractionEnabled) Whether or not the header must be read in the first line of the test documentheaders
(List<UniVocityHeader> headers) The headers to use.headersDisabled
(boolean headersDisabled) Whether or not the headers are disabled.headersDisabled
(String headersDisabled) Whether or not the headers are disabled.ignoreLeadingWhitespaces
(boolean ignoreLeadingWhitespaces) Whether or not the leading white spaces must be ignored.ignoreLeadingWhitespaces
(String ignoreLeadingWhitespaces) Whether or not the leading white spaces must be ignored.ignoreTrailingWhitespaces
(boolean ignoreTrailingWhitespaces) Whether or not the trailing white spaces must be ignored.ignoreTrailingWhitespaces
(String ignoreTrailingWhitespaces) Whether or not the trailing white spaces must be ignored.lazyLoad
(boolean 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.Whether the unmarshalling should produce an iterator that reads the lines on the fly or if all the lines must be read at one.lineSeparator
(String lineSeparator) The line separator of the filesnormalizedLineSeparator
(String normalizedLineSeparator) The normalized line separator of the filesThe string representation of a null value.numberOfRecordsToRead
(int numberOfRecordsToRead) The maximum number of record to read.numberOfRecordsToRead
(String numberOfRecordsToRead) The maximum number of record to read.The quote symbol.quoteAllFields
(boolean quoteAllFields) Whether or not all values must be quoted when writing them.quoteAllFields
(String quoteAllFields) Whether or not all values must be quoted when writing them.quoteEscape
(String quoteEscape) The quote escape symbolskipEmptyLines
(boolean skipEmptyLines) Whether or not the empty lines must be ignored.skipEmptyLines
(String skipEmptyLines) Whether or not the empty lines must be ignored.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
quoteAllFields
Whether or not all values must be quoted when writing them. -
quoteAllFields
Whether or not all values must be quoted when writing them. -
quote
The quote symbol. -
quoteEscape
The quote escape symbol -
delimiter
The delimiter of values -
end
Description copied from interface:DataFormatBuilder
Ends the build of the data format.- Returns:
- the data format fully built.
-
nullValue
The string representation of a null value. The default value is null -
skipEmptyLines
Whether or not the empty lines must be ignored. The default value is true -
skipEmptyLines
Whether or not the empty lines must be ignored. The default value is true -
ignoreTrailingWhitespaces
Whether or not the trailing white spaces must be ignored. The default value is true -
ignoreTrailingWhitespaces
Whether or not the trailing white spaces must be ignored. The default value is true -
ignoreLeadingWhitespaces
Whether or not the leading white spaces must be ignored. The default value is true -
ignoreLeadingWhitespaces
Whether or not the leading white spaces must be ignored. The default value is true -
headersDisabled
Whether or not the headers are disabled. When defined, this option explicitly sets the headers as null which indicates that there is no header. The default value is false -
headersDisabled
Whether or not the headers are disabled. When defined, this option explicitly sets the headers as null which indicates that there is no header. The default value is false -
headers
The headers to use. -
headerExtractionEnabled
Whether or not the header must be read in the first line of the test document The default value is false -
headerExtractionEnabled
Whether or not the header must be read in the first line of the test document The default value is false -
numberOfRecordsToRead
The maximum number of record to read. -
numberOfRecordsToRead
The maximum number of record to read. -
emptyValue
The String representation of an empty value -
lineSeparator
The line separator of the files The default value is to use the JVM platform line separator -
normalizedLineSeparator
The normalized line separator of the files The default value is a new line character. -
comment
The comment symbol. The default value is # -
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. The default value is false -
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. The default value is false -
asMap
Whether the unmarshalling should produce maps for the lines values instead of lists. It requires to have header (either defined or collected). The default value is false -
asMap
Whether the unmarshalling should produce maps for the lines values instead of lists. It requires to have header (either defined or collected). The default value is false
-