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()
IOException
CsvParseException
CharSequence getElement()
long currentLineNumber()
default int skipRow() throws IOException, CsvParseException
IOException
CsvParseException
default void readRow(Consumer<CharSequence> consumer) throws IOException, CsvParseException
IOException
CsvParseException
static CsvReader toReader(Iterator<? extends CharSequence> it)
Copyright © 2021 SPF4J. All rights reserved.