Example code for using this class:
final CSVParser parser =
new CSVParserBuilder()
.withSeparator('\t')
.withIgnoreQuotations(true)
.build();
CSVParser
| Modifier and Type | Field and Description |
|---|---|
| private Locale | |
| private char | |
| private boolean | |
| private boolean | |
| private CSVReaderNullFieldIndicator | |
| private char | |
| private char | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CSVParser | |
| public char | |
| public CSVReaderNullFieldIndicator | |
| public char | |
| public char | |
| public boolean | |
| public boolean | |
| public boolean | |
| public CSVReaderNullFieldIndicator | nullFieldIndicator()
Deprecated
As of 5.11.3, replaced by
getNullFieldIndicator().
Returns: The null field indicator. |
| public CSVParserBuilder | Returns: thisLocale for error messages errorLocale)Sets the locale for all error messages. |
| public CSVParserBuilder | Returns: The CSVParserBuilderThe character to use for escaping a separator or quote. escapeChar)Sets the character to use for escaping a separator or quote. |
| public CSVParserBuilder | Returns: The CSVParserBuilderCSVReaderNullFieldIndicator set to what should be considered a null field. fieldIndicator)Sets the NullFieldIndicator. |
| public CSVParserBuilder | Returns: The CSVParserBuilderIf true, white space in front of a quote in a field is ignored ignoreLeadingWhiteSpace)Sets the ignore leading whitespace setting - if true, white space in front of a quote in a field is ignored. |
| public CSVParserBuilder | Returns: The CSVParserBuilderIf true, quotations are ignored ignoreQuotations)Sets the ignore quotations mode - if true, quotations are ignored. |
| public CSVParserBuilder | Returns: The CSVParserBuilderThe character to use for quoted element. quoteChar)Sets the character to use for quoted elements. |
| public CSVParserBuilder | Returns: The CSVParserBuilderThe delimiter to use for separating entries separator)Sets the delimiter to use for separating entries. |
| public CSVParserBuilder | Returns: The CSVParserBuilderIf true, characters outside the quotes are ignored strictQuotes)Sets the strict quotes setting - if true, characters outside the quotes are ignored. |
| errorLocale | back to summary |
|---|---|
| private Locale errorLocale | |
| escapeChar | back to summary |
|---|---|
| private char escapeChar | |
| ignoreLeadingWhiteSpace | back to summary |
|---|---|
| private boolean ignoreLeadingWhiteSpace | |
| ignoreQuotations | back to summary |
|---|---|
| private boolean ignoreQuotations | |
| nullFieldIndicator | back to summary |
|---|---|
| private CSVReaderNullFieldIndicator nullFieldIndicator | |
| quoteChar | back to summary |
|---|---|
| private char quoteChar | |
| separator | back to summary |
|---|---|
| private char separator | |
| strictQuotes | back to summary |
|---|---|
| private boolean strictQuotes | |
| CSVParserBuilder | back to summary |
|---|---|
| public CSVParserBuilder() Default constructor. | |
| build | back to summary |
|---|---|
| public CSVParser build() Constructs CSVParser.
| |
| getEscapeChar | back to summary |
|---|---|
public char getEscapeChar()
| |
| getNullFieldIndicator | back to summary |
|---|---|
public CSVReaderNullFieldIndicator getNullFieldIndicator()
| |
| getQuoteChar | back to summary |
|---|---|
public char getQuoteChar()
| |
| getSeparator | back to summary |
|---|---|
public char getSeparator()
| |
| isIgnoreLeadingWhiteSpace | back to summary |
|---|---|
public boolean isIgnoreLeadingWhiteSpace()
| |
| isIgnoreQuotations | back to summary |
|---|---|
public boolean isIgnoreQuotations()
| |
| isStrictQuotes | back to summary |
|---|---|
public boolean isStrictQuotes()
| |
| nullFieldIndicator | back to summary |
|---|---|
| public CSVReaderNullFieldIndicator nullFieldIndicator()
Deprecated As of 5.11.3, replaced by
| |
| withErrorLocale | back to summary |
|---|---|
| public CSVParserBuilder withErrorLocale(Locale errorLocale) Sets the locale for all error messages.
| |
| withEscapeChar | back to summary |
|---|---|
| public CSVParserBuilder withEscapeChar(final char escapeChar) Sets the character to use for escaping a separator or quote.
| |
| withFieldAsNull | back to summary |
|---|---|
| public CSVParserBuilder withFieldAsNull(final CSVReaderNullFieldIndicator fieldIndicator) Sets the NullFieldIndicator.
| |
| withIgnoreLeadingWhiteSpace | back to summary |
|---|---|
| public CSVParserBuilder withIgnoreLeadingWhiteSpace(final boolean ignoreLeadingWhiteSpace) Sets the ignore leading whitespace setting - if true, white space in front of a quote in a field is ignored.
| |
| withIgnoreQuotations | back to summary |
|---|---|
| public CSVParserBuilder withIgnoreQuotations(final boolean ignoreQuotations) Sets the ignore quotations mode - if true, quotations are ignored.
| |
| withQuoteChar | back to summary |
|---|---|
| public CSVParserBuilder withQuoteChar(final char quoteChar) Sets the character to use for quoted elements.
| |
| withSeparator | back to summary |
|---|---|
| public CSVParserBuilder withSeparator(final char separator) Sets the delimiter to use for separating entries.
| |
| withStrictQuotes | back to summary |
|---|---|
| public CSVParserBuilder withStrictQuotes(final boolean strictQuotes) Sets the strict quotes setting - if true, characters outside the quotes are ignored.
| |