Class CsvReader.CsvReaderBuilder

java.lang.Object
de.siegmar.fastcsv.reader.CsvReader.CsvReaderBuilder
Enclosing class:
CsvReader<T>

public static final class CsvReader.CsvReaderBuilder extends Object

This builder is used to create configured instances of CsvReader. The default configuration of this class adheres with RFC 4180:

  • Field separator: , (comma)
  • Quote character: " (double quotes)
  • Comment strategy: CommentStrategy.NONE (as RFC doesn't handle comments)
  • Comment character: # (hash) (in case comment strategy is enabled)
  • Skip empty lines: true
  • Ignore different field count: true
  • Accept characters after quotes: true
  • Detect BOM header: false
  • Max buffer size: 16,777,216 characters

The line delimiter (line-feed, carriage-return or the combination of both) is detected automatically and thus not configurable.