Class UniVocityAbstractDataFormat.AbstractBuilder<T extends UniVocityAbstractDataFormat.AbstractBuilder<T,F>,F extends UniVocityAbstractDataFormat>

java.lang.Object
org.apache.camel.model.dataformat.UniVocityAbstractDataFormat.AbstractBuilder<T,F>
All Implemented Interfaces:
DataFormatBuilder<F>
Direct Known Subclasses:
UniVocityCsvDataFormat.Builder, UniVocityFixedDataFormat.Builder, UniVocityTsvDataFormat.Builder
Enclosing class:
UniVocityAbstractDataFormat

protected abstract static class UniVocityAbstractDataFormat.AbstractBuilder<T extends UniVocityAbstractDataFormat.AbstractBuilder<T,F>,F extends UniVocityAbstractDataFormat> extends Object implements DataFormatBuilder<F>
AbstractBuilder is the base builder for UniVocityAbstractDataFormat.
  • Constructor Details

    • AbstractBuilder

      protected AbstractBuilder()
  • Method Details

    • nullValue

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

      The default value is null

    • skipEmptyLines

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

      The default value is true

    • skipEmptyLines

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

      The default value is true

    • ignoreTrailingWhitespaces

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

      The default value is true

    • ignoreTrailingWhitespaces

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

      The default value is true

    • ignoreLeadingWhitespaces

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

      The default value is true

    • ignoreLeadingWhitespaces

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

      The default value is true

    • headersDisabled

      public T 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 T 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

      public T headers(List<UniVocityHeader> headers)
      The headers to use.
    • headerExtractionEnabled

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

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

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

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

      The default value is to use the JVM platform line separator

    • normalizedLineSeparator

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

      The default value is a new line character.

    • comment

      public T comment(String comment)
      The comment symbol.

      The default value is #

    • lazyLoad

      public T 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 T 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

      public T 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 T 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