Class UniVocityFixedDataFormat.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • skipTrailingCharsUntilNewline

      public UniVocityFixedDataFormat.Builder skipTrailingCharsUntilNewline(String skipTrailingCharsUntilNewline)
      Whether or not the trailing characters until new line must be ignored.

      The default value is false

    • skipTrailingCharsUntilNewline

      public UniVocityFixedDataFormat.Builder skipTrailingCharsUntilNewline(boolean skipTrailingCharsUntilNewline)
      Whether or not the trailing characters until new line must be ignored.

      The default value is false

    • recordEndsOnNewline

      public UniVocityFixedDataFormat.Builder recordEndsOnNewline(String recordEndsOnNewline)
      Whether or not the record ends on new line.

      The default value is false

    • recordEndsOnNewline

      public UniVocityFixedDataFormat.Builder recordEndsOnNewline(boolean recordEndsOnNewline)
      Whether or not the record ends on new line.

      The default value is false

    • padding

      public UniVocityFixedDataFormat.Builder padding(String padding)
      The padding character.

      The default value is a space

    • end

      Description copied from interface: DataFormatBuilder
      Ends the build of the data format.
      Returns:
      the data format fully built.
    • nullValue

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

      The default value is null

    • skipEmptyLines

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

      The default value is true

    • skipEmptyLines

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

      The default value is true

    • ignoreTrailingWhitespaces

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

      The default value is true

    • ignoreTrailingWhitespaces

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

      The default value is true

    • ignoreLeadingWhitespaces

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

      The default value is true

    • ignoreLeadingWhitespaces

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

      The default value is true

    • headersDisabled

      public UniVocityFixedDataFormat.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 UniVocityFixedDataFormat.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 UniVocityFixedDataFormat.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 UniVocityFixedDataFormat.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 UniVocityFixedDataFormat.Builder numberOfRecordsToRead(String numberOfRecordsToRead)
      The maximum number of record to read.
    • numberOfRecordsToRead

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

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

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

      The default value is to use the JVM platform line separator

    • normalizedLineSeparator

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

      The default value is a new line character.

    • comment

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

      The default value is #

    • lazyLoad

      public UniVocityFixedDataFormat.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 once.

      The default value is false

    • lazyLoad

      public UniVocityFixedDataFormat.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 once.

      The default value is false

    • 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 UniVocityFixedDataFormat.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