public interface TabularDataFileReader<T> extends Closeable
Modifier and Type | Method and Description |
---|---|
List<String> |
getHeaderLine()
Get the header line of the tabular data file (if possible).
|
long |
getLastRecordLineNumber()
The line number of where the last record returned by
read() starts. |
long |
getLastRecordNumber()
Represents the number of record returned by the
read() method. |
T |
read()
Read a non-empty line of the tabular data file.
|
List<String> getHeaderLine() throws IOException
IOException
T read() throws IOException, ParseException
IOException
ParseException
long getLastRecordLineNumber()
read()
starts.
If no records have been returned yet this method is expected to return 0.
Once read()
returned null, this methods will return the number of the last line in the file.
Note that if the very last line is an empty line with only an endline character it will not be counted.
Line number includes header line and empty lines (if applicable).long getLastRecordNumber()
read()
method.
If no records have been returned yet this method is expected to return 0.
A record can span over multiple line.Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.