public abstract class CsvReaderDelegate extends CsvProcessor implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected CsvReader |
csvReader |
protected boolean |
headersRead |
protected long |
linesRead |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getFieldNames() |
List<Field> |
getFields() |
long |
getLinesRead() |
boolean |
isHeadersRead() |
protected abstract String[] |
line(long lineIdx) |
FlatRecord |
nextRecord() |
void |
readHeaders() |
abstract String[] |
readHeadersInternal() |
CsvLine |
readNextLine() |
void |
setHeadersRead(boolean headersRead) |
abstract int |
size()
Returns the number of lines including the headers
|
getDateFormat, setDateFormat, setDateFormat, setFieldNames, setFields, setFieldsprotected boolean headersRead
protected long linesRead
protected CsvReader csvReader
public abstract int size()
throws IOException
IOExceptionpublic abstract String[] readHeadersInternal() throws IOException
IOExceptionprotected abstract String[] line(long lineIdx) throws IOException
IOExceptionpublic CsvLine readNextLine() throws IOException
IOExceptionpublic void readHeaders()
throws IOException
IOExceptionpublic final boolean isHeadersRead()
public final long getLinesRead()
public final List<Field> getFields()
getFields in class CsvProcessorpublic final List<String> getFieldNames()
getFieldNames in class CsvProcessorpublic final FlatRecord nextRecord() throws IOException
IOExceptionpublic void setHeadersRead(boolean headersRead)
Copyright © 2021 Open Foris. All rights reserved.