CsvFormat, CsvParserSettings, CsvWriter, AbstractParser
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private char | |
| private char[] | |
| private final boolean | |
| private final String | |
| private char | |
| private int | |
| private final boolean | |
| private final boolean | |
| private int | |
| private final int | |
| private char[] | |
| private char | |
| private final boolean | |
| private final String | |
| private boolean | |
| private boolean | |
| private char | |
| private char | |
| private char | |
| private UnescapedQuoteHandling | |
| private final boolean | |
| private final boolean | |
| private boolean | |
| private final DefaultCharAppender |
| Access | Constructor and Description |
|---|---|
| public | CsvParser(CsvParserSettings
the parser configuration settings)The CsvParser supports all settings provided by |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected final boolean | consumeValueOnEOF()
Overrides com. |
| public final CsvFormat | Returns: the detected CSV format, ornull if no detection has been enabled or if the parsing process has not been started yet.Returns the CSV format detected when one of the following settings is enabled: |
| protected final InputAnalysisProcess | getInputAnalysisProcess()
Overrides com. |
| private boolean | |
| private void | |
| private void | |
| private boolean | |
| private boolean | |
| private int | |
| private void | |
| private void | |
| private void | |
| protected final void | parseRecord()
Implements abstract com. |
| private final void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public final void | updateFormat(CsvFormat
the new format to use. format)Allows changing the format of the input on the fly. |
| backToDelimiter | back to summary |
|---|---|
| private boolean backToDelimiter | |
| delimiter | back to summary |
|---|---|
| private char delimiter | |
| delimiters | back to summary |
|---|---|
| private char[] delimiters | |
| doNotEscapeUnquotedValues | back to summary |
|---|---|
| private final boolean doNotEscapeUnquotedValues | |
| emptyValue | back to summary |
|---|---|
| private final String emptyValue | |
| escapeEscape | back to summary |
|---|---|
| private char escapeEscape | |
| formatDetectorRowSampleCount | back to summary |
|---|---|
| private int formatDetectorRowSampleCount | |
| keepEscape | back to summary |
|---|---|
| private final boolean keepEscape | |
| keepQuotes | back to summary |
|---|---|
| private final boolean keepQuotes | |
| match | back to summary |
|---|---|
| private int match | |
| maxColumnLength | back to summary |
|---|---|
| private final int maxColumnLength | |
| multiDelimiter | back to summary |
|---|---|
| private char[] multiDelimiter | |
| newLine | back to summary |
|---|---|
| private char newLine | |
| normalizeLineEndingsInQuotes | back to summary |
|---|---|
| private final boolean normalizeLineEndingsInQuotes | |
| nullValue | back to summary |
|---|---|
| private final String nullValue | |
| parseUnescapedQuotes | back to summary |
|---|---|
| private boolean parseUnescapedQuotes | |
| parseUnescapedQuotesUntilDelimiter | back to summary |
|---|---|
| private boolean parseUnescapedQuotesUntilDelimiter | |
| prev | back to summary |
|---|---|
| private char prev | |
| quote | back to summary |
|---|---|
| private char quote | |
| quoteEscape | back to summary |
|---|---|
| private char quoteEscape | |
| quoteHandling | back to summary |
|---|---|
| private UnescapedQuoteHandling quoteHandling | |
| trimQuotedLeading | back to summary |
|---|---|
| private final boolean trimQuotedLeading | |
| trimQuotedTrailing | back to summary |
|---|---|
| private final boolean trimQuotedTrailing | |
| unescaped | back to summary |
|---|---|
| private boolean unescaped | |
| whitespaceAppender | back to summary |
|---|---|
| private final DefaultCharAppender whitespaceAppender | |
| CsvParser | back to summary |
|---|---|
| public CsvParser(CsvParserSettings settings) The CsvParser supports all settings provided by
| |
| appendUntilMultiDelimiter | back to summary |
|---|---|
| private void appendUntilMultiDelimiter() | |
| consumeValueOnEOF | back to summary |
|---|---|
| protected final boolean consumeValueOnEOF() Overrides com. Doc from com. Allows the parser implementation to handle any value that was being consumed when the end of the input was reached
| |
| getDetectedFormat | back to summary |
|---|---|
| public final CsvFormat getDetectedFormat() Returns the CSV format detected when one of the following settings is enabled:
runs.
| |
| getInputAnalysisProcess | back to summary |
|---|---|
| protected final InputAnalysisProcess getInputAnalysisProcess() Overrides com. Doc from com. Allows the parser implementation to traverse the input buffer before the parsing process starts, in order to enable automatic configuration and discovery of data formats.
| |
| handleUnescapedQuote | back to summary |
|---|---|
| private boolean handleUnescapedQuote() | |
| handleUnescapedQuoteInValue | back to summary |
|---|---|
| private void handleUnescapedQuoteInValue() | |
| handleValueSkipping | back to summary |
|---|---|
| private void handleValueSkipping(boolean quoted) | |
| matchDelimiter | back to summary |
|---|---|
| private boolean matchDelimiter() | |
| matchDelimiterAfterQuote | back to summary |
|---|---|
| private boolean matchDelimiterAfterQuote() | |
| nextDelimiter | back to summary |
|---|---|
| private int nextDelimiter() | |
| parseMultiDelimiterRecord | back to summary |
|---|---|
| private void parseMultiDelimiterRecord() | |
| parseQuotedValue | back to summary |
|---|---|
| private void parseQuotedValue() | |
| parseQuotedValueMultiDelimiter | back to summary |
|---|---|
| private void parseQuotedValueMultiDelimiter() | |
| parseRecord | back to summary |
|---|---|
| protected final void parseRecord() Implements abstract com. Doc from com. Parser-specific implementation for reading a single record from the input. The AbstractParser handles the initialization and processing of the input until it is ready to be parsed. It then delegates the input to the parser-specific implementation defined by
Once the After the record processing, the AbstractParser reads the next characters from the input, delegating control again to the parseRecord() implementation for processing of the next record. This cycle repeats until the reading process is stopped by the user, the input is exhausted, or an error happens. In case of errors, the unchecked exception
| |
| parseSingleDelimiterRecord | back to summary |
|---|---|
| private final void parseSingleDelimiterRecord() | |
| parseValueProcessingEscape | back to summary |
|---|---|
| private void parseValueProcessingEscape() | |
| parseValueProcessingEscapeMultiDelimiter | back to summary |
|---|---|
| private void parseValueProcessingEscapeMultiDelimiter() | |
| processQuoteEscape | back to summary |
|---|---|
| private void processQuoteEscape() | |
| saveMatchingCharacters | back to summary |
|---|---|
| private void saveMatchingCharacters() | |
| skipValue | back to summary |
|---|---|
| private void skipValue() | |
| skipWhitespace | back to summary |
|---|---|
| private void skipWhitespace() | |
| updateFormat | back to summary |
|---|---|
| public final void updateFormat(CsvFormat format) Allows changing the format of the input on the fly.
| |