Class FlatpackDataFormat
java.lang.Object
org.apache.camel.model.IdentifiedType
org.apache.camel.model.DataFormatDefinition
org.apache.camel.model.dataformat.FlatpackDataFormat
@Metadata(firstVersion="2.1.0",
label="dataformat,transformation,csv",
title="Flatpack")
public class FlatpackDataFormat
extends DataFormatDefinition
Marshal and unmarshal Java lists and maps to/from flat files (such as CSV, delimited, or fixed length formats) using
Flatpack library.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilderis a specific builder forFlatpackDataFormat. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFixed()voidsetAllowShortLines(String allowShortLines) Allows for lines to be shorter than expected and ignores the extra charactersvoidsetDefinition(String definition) The flatpack pzmap configuration file.voidsetDelimiter(String delimiter) The delimiter char (could be ; , or similar)voidDelimited or fixed.voidsetIgnoreExtraColumns(String ignoreExtraColumns) Allows for lines to be longer than expected and ignores the extra characters.voidsetIgnoreFirstRecord(String ignoreFirstRecord) Whether the first line is ignored for delimited files (for the column headers).voidsetParserFactoryRef(String parserFactoryRef) References to a custom parser factory to lookup in the registryvoidsetTextQualifier(String textQualifier) If the text is qualified with a character.Methods inherited from class org.apache.camel.model.DataFormatDefinition
getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatNameMethods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
-
Constructor Details
-
FlatpackDataFormat
public FlatpackDataFormat()
-
-
Method Details
-
getDefinition
-
setDefinition
The flatpack pzmap configuration file. Can be omitted in simpler situations, but its preferred to use the pzmap. -
getFixed
-
setFixed
Delimited or fixed. Is by default false = delimited -
getIgnoreFirstRecord
-
setIgnoreFirstRecord
Whether the first line is ignored for delimited files (for the column headers). Is by default true. -
getTextQualifier
-
setTextQualifier
If the text is qualified with a character. Uses quote character by default. -
getDelimiter
-
setDelimiter
The delimiter char (could be ; , or similar) -
getAllowShortLines
-
setAllowShortLines
Allows for lines to be shorter than expected and ignores the extra characters -
getIgnoreExtraColumns
-
setIgnoreExtraColumns
Allows for lines to be longer than expected and ignores the extra characters. -
getParserFactoryRef
-
setParserFactoryRef
References to a custom parser factory to lookup in the registry
-