public interface CsvReader
| Modifier and Type | Interface and Description |
|---|---|
static class |
CsvReader.TokenType |
| Modifier and Type | Method and Description |
|---|---|
CsvReader.TokenType |
current() |
long |
currentLineNumber()
Current CSV line number.
|
CharSequence |
getElement()
the CSV element string.
|
CsvReader.TokenType |
next()
read next CSV element, and return its type.
|
default void |
readRow(Consumer<CharSequence> consumer) |
default int |
skipRow() |
static CsvReader |
toReader(Iterator<? extends CharSequence> it) |
@Nonnull CsvReader.TokenType next() throws IOException, CsvParseException
IOException - exception is something goes wrong.CsvParseException@Nonnull CsvReader.TokenType current()
IOExceptionCsvParseExceptionCharSequence getElement()
long currentLineNumber()
default int skipRow()
throws IOException,
CsvParseException
IOExceptionCsvParseExceptiondefault void readRow(Consumer<CharSequence> consumer) throws IOException, CsvParseException
IOExceptionCsvParseExceptionstatic CsvReader toReader(Iterator<? extends CharSequence> it)
Copyright © 2021 SPF4J. All rights reserved.