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

    • Builder

      public Builder()
  • Method Details

    • 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 interface DataFormatBuilder<FlatpackDataFormat>
      Returns:
      the data format fully built.