public abstract class CsvReader<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
currentEntryNumber |
protected Logger |
logger |
protected String |
path |
protected BufferedReader |
reader |
protected CsvSchema<T> |
schema |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
buildObject(long entryNumber,
List<String> tokens) |
void |
close() |
protected double |
getDouble(String key,
List<String> values,
double defaultValue) |
protected long |
getLong(String key,
List<String> values,
long defaultValue) |
void |
load(String path) |
T |
next() |
protected T |
processLine(String line) |
List<T> |
readAll(String inputPath) |
protected long currentEntryNumber
protected Logger logger
protected String path
protected BufferedReader reader
public void load(String path) throws IOException
IOException
public T next() throws IOException
IOException
public void close()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.