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 forFlatpackDataFormat
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlatpackDataFormat.Builder
allowShortLines(boolean allowShortLines)
Allows for lines to be shorter than expected and ignores the extra charactersFlatpackDataFormat.Builder
allowShortLines(String allowShortLines)
Allows for lines to be shorter than expected and ignores the extra charactersFlatpackDataFormat.Builder
definition(String definition)
The flatpack pzmap configuration file.FlatpackDataFormat.Builder
delimiter(String delimiter)
The delimiter char (could be ; , or similar)FlatpackDataFormat
end()
Ends the build of the data format.FlatpackDataFormat.Builder
fixed(boolean fixed)
Delimited or fixed.FlatpackDataFormat.Builder
fixed(String fixed)
Delimited or fixed.FlatpackDataFormat.Builder
ignoreExtraColumns(boolean ignoreExtraColumns)
Allows for lines to be longer than expected and ignores the extra characters.FlatpackDataFormat.Builder
ignoreExtraColumns(String ignoreExtraColumns)
Allows for lines to be longer than expected and ignores the extra characters.FlatpackDataFormat.Builder
ignoreFirstRecord(boolean ignoreFirstRecord)
Whether the first line is ignored for delimited files (for the column headers).FlatpackDataFormat.Builder
ignoreFirstRecord(String ignoreFirstRecord)
Whether the first line is ignored for delimited files (for the column headers).FlatpackDataFormat.Builder
parserFactoryRef(String parserFactoryRef)
References to a custom parser factory to lookup in the registryFlatpackDataFormat.Builder
textQualifier(String textQualifier)
If the text is qualified with a character.
-
-
-
Method Detail
-
definition
public FlatpackDataFormat.Builder definition(String definition)
The flatpack pzmap configuration file. Can be omitted in simpler situations, but its preferred to use the pzmap.
-
fixed
public FlatpackDataFormat.Builder fixed(String fixed)
Delimited or fixed. Is by default false = delimited
-
fixed
public FlatpackDataFormat.Builder fixed(boolean fixed)
Delimited or fixed. Is by default false = delimited
-
ignoreFirstRecord
public FlatpackDataFormat.Builder ignoreFirstRecord(String ignoreFirstRecord)
Whether the first line is ignored for delimited files (for the column headers). Is by default true.
-
ignoreFirstRecord
public FlatpackDataFormat.Builder ignoreFirstRecord(boolean ignoreFirstRecord)
Whether the first line is ignored for delimited files (for the column headers). Is by default true.
-
textQualifier
public FlatpackDataFormat.Builder textQualifier(String textQualifier)
If the text is qualified with a character. Uses quote character by default.
-
delimiter
public FlatpackDataFormat.Builder delimiter(String delimiter)
The delimiter char (could be ; , or similar)
-
allowShortLines
public FlatpackDataFormat.Builder allowShortLines(String allowShortLines)
Allows for lines to be shorter than expected and ignores the extra characters
-
allowShortLines
public FlatpackDataFormat.Builder allowShortLines(boolean allowShortLines)
Allows for lines to be shorter than expected and ignores the extra characters
-
ignoreExtraColumns
public FlatpackDataFormat.Builder ignoreExtraColumns(String ignoreExtraColumns)
Allows for lines to be longer than expected and ignores the extra characters.
-
ignoreExtraColumns
public FlatpackDataFormat.Builder ignoreExtraColumns(boolean ignoreExtraColumns)
Allows for lines to be longer than expected and ignores the extra characters.
-
parserFactoryRef
public FlatpackDataFormat.Builder parserFactoryRef(String parserFactoryRef)
References to a custom parser factory to lookup in the registry
-
end
public FlatpackDataFormat 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.
-
-