Class UniVocityAbstractDataFormat
java.lang.Object
org.apache.camel.model.IdentifiedType
org.apache.camel.model.DataFormatDefinition
org.apache.camel.model.dataformat.UniVocityAbstractDataFormat
- Direct Known Subclasses:
UniVocityCsvDataFormat
,UniVocityFixedDataFormat
,UniVocityTsvDataFormat
@Metadata(label="dataformat,transformation,csv",
title="uniVocity")
public abstract class UniVocityAbstractDataFormat
extends DataFormatDefinition
Represents the common parts of all uniVocity
DataFormat
parsers.-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
UniVocityAbstractDataFormat
(String dataFormatName) protected
UniVocityAbstractDataFormat
(String dataFormatName, org.apache.camel.model.dataformat.UniVocityAbstractDataFormat.AbstractBuilder<?, ?> builder) -
Method Summary
Modifier and TypeMethodDescriptiongetAsMap()
void
Whether the unmarshalling should produce maps for the lines values instead of lists.void
setComment
(String comment) The comment symbol.void
setEmptyValue
(String emptyValue) The String representation of an empty valuevoid
setHeaderExtractionEnabled
(String headerExtractionEnabled) Whether or not the header must be read in the first line of the test documentvoid
setHeaders
(List<UniVocityHeader> headers) The headers to use.void
setHeadersDisabled
(String headersDisabled) Whether or not the headers are disabled.void
setIgnoreLeadingWhitespaces
(String ignoreLeadingWhitespaces) Whether or not the leading white spaces must be ignored.void
setIgnoreTrailingWhitespaces
(String ignoreTrailingWhitespaces) Whether or not the trailing white spaces must be ignored.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
setLineSeparator
(String lineSeparator) The line separator of the filesvoid
setNormalizedLineSeparator
(String normalizedLineSeparator) The normalized line separator of the filesvoid
setNullValue
(String nullValue) The string representation of a null value.void
setNumberOfRecordsToRead
(String numberOfRecordsToRead) The maximum number of record to read.void
setSkipEmptyLines
(String skipEmptyLines) Whether or not the empty lines must be ignored.Methods inherited from class org.apache.camel.model.DataFormatDefinition
getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatName
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
Field Details
-
nullValue
-
skipEmptyLines
-
ignoreTrailingWhitespaces
@Metadata(javaType="java.lang.Boolean", defaultValue="true") protected String ignoreTrailingWhitespaces -
ignoreLeadingWhitespaces
@Metadata(javaType="java.lang.Boolean", defaultValue="true") protected String ignoreLeadingWhitespaces -
headersDisabled
-
headers
-
headerExtractionEnabled
-
numberOfRecordsToRead
-
emptyValue
-
lineSeparator
-
normalizedLineSeparator
-
comment
-
lazyLoad
-
asMap
-
-
Constructor Details
-
UniVocityAbstractDataFormat
protected UniVocityAbstractDataFormat() -
UniVocityAbstractDataFormat
-
UniVocityAbstractDataFormat
protected UniVocityAbstractDataFormat(String dataFormatName, org.apache.camel.model.dataformat.UniVocityAbstractDataFormat.AbstractBuilder<?, ?> builder)
-
-
Method Details
-
getNullValue
-
setNullValue
The string representation of a null value. The default value is null -
getSkipEmptyLines
-
setSkipEmptyLines
Whether or not the empty lines must be ignored. The default value is true -
getIgnoreTrailingWhitespaces
-
setIgnoreTrailingWhitespaces
Whether or not the trailing white spaces must be ignored. The default value is true -
getIgnoreLeadingWhitespaces
-
setIgnoreLeadingWhitespaces
Whether or not the leading white spaces must be ignored. The default value is true -
getHeadersDisabled
-
setHeadersDisabled
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 -
getHeaders
-
setHeaders
The headers to use. -
getHeaderExtractionEnabled
-
setHeaderExtractionEnabled
Whether or not the header must be read in the first line of the test document The default value is false -
getNumberOfRecordsToRead
-
setNumberOfRecordsToRead
The maximum number of record to read. -
getEmptyValue
-
setEmptyValue
The String representation of an empty value -
getLineSeparator
-
setLineSeparator
The line separator of the files The default value is to use the JVM platform line separator -
getNormalizedLineSeparator
-
setNormalizedLineSeparator
The normalized line separator of the files The default value is a new line character. -
getComment
-
setComment
The comment symbol. The default value is # -
getLazyLoad
-
setLazyLoad
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 -
getAsMap
-
setAsMap
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
-