Class UniVocityCsvDataFormat.Builder

java.lang.Object
org.apache.camel.model.dataformat.UniVocityCsvDataFormat.Builder
All Implemented Interfaces:
DataFormatBuilder<UniVocityCsvDataFormat>
Enclosing class:
UniVocityCsvDataFormat

public static class UniVocityCsvDataFormat.Builder extends Object
Builder is a specific builder for UniVocityCsvDataFormat.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • quoteAllFields

      public UniVocityCsvDataFormat.Builder quoteAllFields(String quoteAllFields)
      Whether or not all values must be quoted when writing them.
    • quoteAllFields

      public UniVocityCsvDataFormat.Builder quoteAllFields(boolean quoteAllFields)
      Whether or not all values must be quoted when writing them.
    • quote

      public UniVocityCsvDataFormat.Builder quote(String quote)
      The quote symbol.
    • quoteEscape

      public UniVocityCsvDataFormat.Builder quoteEscape(String quoteEscape)
      The quote escape symbol
    • delimiter

      public UniVocityCsvDataFormat.Builder delimiter(String delimiter)
      The delimiter of values
    • end

      public UniVocityCsvDataFormat end()
      Description copied from interface: DataFormatBuilder
      Ends the build of the data format.
      Returns:
      the data format fully built.
    • nullValue

      public UniVocityCsvDataFormat.Builder nullValue(String nullValue)
      The string representation of a null value.

      The default value is null

    • skipEmptyLines

      public UniVocityCsvDataFormat.Builder skipEmptyLines(String skipEmptyLines)
      Whether or not the empty lines must be ignored.

      The default value is true

    • skipEmptyLines

      public UniVocityCsvDataFormat.Builder skipEmptyLines(boolean skipEmptyLines)
      Whether or not the empty lines must be ignored.

      The default value is true

    • ignoreTrailingWhitespaces

      public UniVocityCsvDataFormat.Builder ignoreTrailingWhitespaces(String ignoreTrailingWhitespaces)
      Whether or not the trailing white spaces must be ignored.

      The default value is true

    • ignoreTrailingWhitespaces

      public UniVocityCsvDataFormat.Builder ignoreTrailingWhitespaces(boolean ignoreTrailingWhitespaces)
      Whether or not the trailing white spaces must be ignored.

      The default value is true

    • ignoreLeadingWhitespaces

      public UniVocityCsvDataFormat.Builder ignoreLeadingWhitespaces(String ignoreLeadingWhitespaces)
      Whether or not the leading white spaces must be ignored.

      The default value is true

    • ignoreLeadingWhitespaces

      public UniVocityCsvDataFormat.Builder ignoreLeadingWhitespaces(boolean ignoreLeadingWhitespaces)
      Whether or not the leading white spaces must be ignored.

      The default value is true

    • headersDisabled

      public UniVocityCsvDataFormat.Builder headersDisabled(String headersDisabled)
      Whether or not the headers are disabled. When defined, this option explicitly sets the headers as null which indicates that there is no header.

      The default value is false

    • headersDisabled

      public UniVocityCsvDataFormat.Builder headersDisabled(boolean headersDisabled)
      Whether or not the headers are disabled. When defined, this option explicitly sets the headers as null which indicates that there is no header.

      The default value is false

    • headers

      The headers to use.
    • headerExtractionEnabled

      public UniVocityCsvDataFormat.Builder headerExtractionEnabled(String headerExtractionEnabled)
      Whether or not the header must be read in the first line of the test document

      The default value is false

    • headerExtractionEnabled

      public UniVocityCsvDataFormat.Builder headerExtractionEnabled(boolean headerExtractionEnabled)
      Whether or not the header must be read in the first line of the test document

      The default value is false

    • numberOfRecordsToRead

      public UniVocityCsvDataFormat.Builder numberOfRecordsToRead(String numberOfRecordsToRead)
      The maximum number of record to read.
    • numberOfRecordsToRead

      public UniVocityCsvDataFormat.Builder numberOfRecordsToRead(int numberOfRecordsToRead)
      The maximum number of record to read.
    • emptyValue

      public UniVocityCsvDataFormat.Builder emptyValue(String emptyValue)
      The String representation of an empty value
    • lineSeparator

      public UniVocityCsvDataFormat.Builder lineSeparator(String lineSeparator)
      The line separator of the files

      The default value is to use the JVM platform line separator

    • normalizedLineSeparator

      public UniVocityCsvDataFormat.Builder normalizedLineSeparator(String normalizedLineSeparator)
      The normalized line separator of the files

      The default value is a new line character.

    • comment

      public UniVocityCsvDataFormat.Builder comment(String comment)
      The comment symbol.

      The default value is #

    • lazyLoad

      public UniVocityCsvDataFormat.Builder lazyLoad(String lazyLoad)
      Whether the unmarshalling should produce an iterator that reads the lines on the fly or if all the lines must be read at one.

      The default value is false

    • lazyLoad

      public UniVocityCsvDataFormat.Builder lazyLoad(boolean lazyLoad)
      Whether the unmarshalling should produce an iterator that reads the lines on the fly or if all the lines must be read at one.

      The default value is false

    • asMap

      public UniVocityCsvDataFormat.Builder asMap(String asMap)
      Whether the unmarshalling should produce maps for the lines values instead of lists. It requires to have header (either defined or collected).

      The default value is false

    • asMap

      public UniVocityCsvDataFormat.Builder asMap(boolean asMap)
      Whether the unmarshalling should produce maps for the lines values instead of lists. It requires to have header (either defined or collected).

      The default value is false