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
Modifier and TypeClassDescriptionstatic class
Builder
is a specific builder forFlatpackDataFormat
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFixed()
void
setAllowShortLines
(String allowShortLines) Allows for lines to be shorter than expected and ignores the extra charactersvoid
setDefinition
(String definition) The flatpack pzmap configuration file.void
setDelimiter
(String delimiter) The delimiter char (could be ; , or similar)void
Delimited or fixed.void
setIgnoreExtraColumns
(String ignoreExtraColumns) Allows for lines to be longer than expected and ignores the extra characters.void
setIgnoreFirstRecord
(String ignoreFirstRecord) Whether the first line is ignored for delimited files (for the column headers).void
setParserFactoryRef
(String parserFactoryRef) References to a custom parser factory to lookup in the registryvoid
setTextQualifier
(String textQualifier) If the text is qualified with a character.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
-
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
-