Class UniVocityTsvDataFormat.Builder
java.lang.Object
org.apache.camel.model.dataformat.UniVocityTsvDataFormat.Builder
- All Implemented Interfaces:
DataFormatBuilder<UniVocityTsvDataFormat>
- Enclosing class:
- UniVocityTsvDataFormat
Builder
is a specific builder for UniVocityTsvDataFormat
.-
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.emptyValue
(String emptyValue) The String representation of an empty valueend()
Ends the build of the data format.escapeChar
(String escapeChar) The escape character.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.skipEmptyLines
(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
-
escapeChar
The escape character. -
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
-