public class CsvTokenizer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CsvTokenizer.Builder |
Modifier and Type | Method and Description |
---|---|
static CsvTokenizer.Builder |
builder(String delimiter) |
long |
getCurrentLineNumber() |
boolean |
hasNextColumn() |
String |
nextColumn() |
String |
nextColumnOrNull() |
boolean |
nextRecord() |
boolean |
nextRecord(boolean skipEmptyLine) |
String |
skipCurrentLine() |
boolean |
skipHeaderLine() |
boolean |
wasQuotedColumn() |
public static CsvTokenizer.Builder builder(String delimiter)
public long getCurrentLineNumber()
public boolean skipHeaderLine()
public String skipCurrentLine()
public boolean nextRecord() throws RecordHasUnexpectedRemainingColumnException
public boolean nextRecord(boolean skipEmptyLine) throws RecordHasUnexpectedRemainingColumnException
public boolean hasNextColumn()
public String nextColumn() throws RecordDoesNotHaveExpectedColumnException, QuotedFieldLengthLimitExceededException, UnexpectedEndOfLineInQuotedFieldException, UnexpectedCharacterAfterQuoteException
public String nextColumnOrNull() throws RecordDoesNotHaveExpectedColumnException, RecordHasUnexpectedRemainingColumnException, QuotedFieldLengthLimitExceededException, UnexpectedEndOfLineInQuotedFieldException, UnexpectedCharacterAfterQuoteException
public boolean wasQuotedColumn()