Class UniVocityFixedDataFormat.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • 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​(boolean recordEndsOnNewline)
        Whether or not the record ends on new line.

        The default value is false

      • 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

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

        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 one.

        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