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 Classes Modifier and Type Class Description static class
FlatpackDataFormat.Builder
Builder
is a specific builder forFlatpackDataFormat
.
-
Constructor Summary
Constructors Constructor Description FlatpackDataFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAllowShortLines()
String
getDefinition()
String
getDelimiter()
String
getFixed()
String
getIgnoreExtraColumns()
String
getIgnoreFirstRecord()
String
getParserFactoryRef()
String
getTextQualifier()
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
setFixed(String fixed)
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
-
-
-
-
Method Detail
-
getDefinition
public String getDefinition()
-
setDefinition
public void setDefinition(String definition)
The flatpack pzmap configuration file. Can be omitted in simpler situations, but its preferred to use the pzmap.
-
getFixed
public String getFixed()
-
setFixed
public void setFixed(String fixed)
Delimited or fixed. Is by default false = delimited
-
getIgnoreFirstRecord
public String getIgnoreFirstRecord()
-
setIgnoreFirstRecord
public void setIgnoreFirstRecord(String ignoreFirstRecord)
Whether the first line is ignored for delimited files (for the column headers). Is by default true.
-
getTextQualifier
public String getTextQualifier()
-
setTextQualifier
public void setTextQualifier(String textQualifier)
If the text is qualified with a character. Uses quote character by default.
-
getDelimiter
public String getDelimiter()
-
setDelimiter
public void setDelimiter(String delimiter)
The delimiter char (could be ; , or similar)
-
getAllowShortLines
public String getAllowShortLines()
-
setAllowShortLines
public void setAllowShortLines(String allowShortLines)
Allows for lines to be shorter than expected and ignores the extra characters
-
getIgnoreExtraColumns
public String getIgnoreExtraColumns()
-
setIgnoreExtraColumns
public void setIgnoreExtraColumns(String ignoreExtraColumns)
Allows for lines to be longer than expected and ignores the extra characters.
-
getParserFactoryRef
public String getParserFactoryRef()
-
setParserFactoryRef
public void setParserFactoryRef(String parserFactoryRef)
References to a custom parser factory to lookup in the registry
-
-