Package org.openforis.commons.io.csv
Class CsvReaderDelegate
java.lang.Object
org.openforis.commons.io.csv.CsvProcessor
org.openforis.commons.io.csv.CsvReaderDelegate
- All Implemented Interfaces:
Closeable,AutoCloseable
- Author:
- D. Wiell, S. Ricci
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal longfinal booleanprotected abstract String[]line(long lineIdx) final FlatRecordvoidabstract String[]voidsetHeadersRead(boolean headersRead) abstract intsize()Returns the number of lines including the headersMethods inherited from class org.openforis.commons.io.csv.CsvProcessor
getDateFormat, setDateFormat, setDateFormat, setFieldNames, setFields, setFields
-
Field Details
-
headersRead
protected boolean headersRead -
linesRead
protected long linesRead -
csvReader
-
-
Method Details
-
size
Returns the number of lines including the headers- Returns:
- Throws:
IOException
-
readHeadersInternal
- Throws:
IOException
-
line
- Throws:
IOException
-
readNextLine
- Throws:
IOException
-
readHeaders
- Throws:
IOException
-
isHeadersRead
public final boolean isHeadersRead() -
getLinesRead
public final long getLinesRead() -
getFields
- Overrides:
getFieldsin classCsvProcessor
-
getFieldNames
- Overrides:
getFieldNamesin classCsvProcessor
-
nextRecord
- Throws:
IOException
-
setHeadersRead
public void setHeadersRead(boolean headersRead)
-