Class 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.
  • Constructor Details

    • FlatpackDataFormat

      public FlatpackDataFormat()
  • Method Details

    • 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