Class FlatpackDataFormat.Builder
java.lang.Object
org.apache.camel.model.dataformat.FlatpackDataFormat.Builder
- All Implemented Interfaces:
DataFormatBuilder<FlatpackDataFormat>
- Enclosing class:
- FlatpackDataFormat
public static class FlatpackDataFormat.Builder
extends Object
implements DataFormatBuilder<FlatpackDataFormat>
Builder
is a specific builder for FlatpackDataFormat
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowShortLines
(boolean allowShortLines) Allows for lines to be shorter than expected and ignores the extra charactersallowShortLines
(String allowShortLines) Allows for lines to be shorter than expected and ignores the extra charactersdefinition
(String definition) The flatpack pzmap configuration file.The delimiter char (could be ; , or similar)end()
Ends the build of the data format.fixed
(boolean fixed) Delimited or fixed.Delimited or fixed.ignoreExtraColumns
(boolean ignoreExtraColumns) Allows for lines to be longer than expected and ignores the extra characters.ignoreExtraColumns
(String ignoreExtraColumns) Allows for lines to be longer than expected and ignores the extra characters.ignoreFirstRecord
(boolean ignoreFirstRecord) Whether the first line is ignored for delimited files (for the column headers).ignoreFirstRecord
(String ignoreFirstRecord) Whether the first line is ignored for delimited files (for the column headers).parserFactoryRef
(String parserFactoryRef) References to a custom parser factory to lookup in the registrytextQualifier
(String textQualifier) If the text is qualified with a character.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
definition
The flatpack pzmap configuration file. Can be omitted in simpler situations, but its preferred to use the pzmap. -
fixed
Delimited or fixed. Is by default false = delimited -
fixed
Delimited or fixed. Is by default false = delimited -
ignoreFirstRecord
Whether the first line is ignored for delimited files (for the column headers). Is by default true. -
ignoreFirstRecord
Whether the first line is ignored for delimited files (for the column headers). Is by default true. -
textQualifier
If the text is qualified with a character. Uses quote character by default. -
delimiter
The delimiter char (could be ; , or similar) -
allowShortLines
Allows for lines to be shorter than expected and ignores the extra characters -
allowShortLines
Allows for lines to be shorter than expected and ignores the extra characters -
ignoreExtraColumns
Allows for lines to be longer than expected and ignores the extra characters. -
ignoreExtraColumns
Allows for lines to be longer than expected and ignores the extra characters. -
parserFactoryRef
References to a custom parser factory to lookup in the registry -
end
Description copied from interface:DataFormatBuilder
Ends the build of the data format.- Specified by:
end
in interfaceDataFormatBuilder<FlatpackDataFormat>
- Returns:
- the data format fully built.
-