public abstract class CsvReaderDelegate extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CsvReader |
csvReader |
protected boolean |
headersRead |
protected long |
linesRead |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
List<String> |
getColumnNames() |
DateFormat |
getDateFormat() |
List<String> |
getFieldNames() |
long |
getLinesRead() |
boolean |
isHeadersRead() |
protected abstract String[] |
line(long lineIdx) |
FlatRecord |
nextRecord() |
abstract void |
readHeaders() |
CsvLine |
readNextLine() |
protected void |
setColumnNames(String[] headers) |
void |
setDateFormat(DateFormat dateFormat) |
void |
setDateFormat(String pattern) |
abstract int |
size()
Returns the number of lines including the headers
|
protected boolean headersRead
protected long linesRead
protected CsvReader csvReader
public abstract int size()
throws IOException
IOExceptionpublic abstract void close()
throws IOException
IOExceptionpublic abstract void readHeaders()
throws IOException
IOExceptionprotected abstract String[] line(long lineIdx) throws IOException
IOExceptionpublic CsvLine readNextLine() throws IOException
IOExceptionpublic final boolean isHeadersRead()
public final long getLinesRead()
public final FlatRecord nextRecord() throws IOException
IOExceptionpublic DateFormat getDateFormat()
public void setDateFormat(DateFormat dateFormat)
public void setDateFormat(String pattern)
protected void setColumnNames(String[] headers)
Copyright © 2020 Open Foris. All rights reserved.