public class CSVReader extends Object implements SimpleReader
Constructor and Description |
---|
CSVReader(CSVStoreParameters parameters) |
CSVReader(FileReader in,
CSVStoreParameters parameters) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getColumnsCount() |
CsvPreference |
getCSVPreferences() |
String[] |
getHeader() |
int |
getLine() |
CSVStoreParameters |
getParameters() |
List<String> |
read() |
List<String> |
skip(int lines) |
public CSVReader(FileReader in, CSVStoreParameters parameters)
public CSVReader(CSVStoreParameters parameters)
public CSVStoreParameters getParameters()
public String[] getHeader() throws IOException
getHeader
in interface SimpleReader
IOException
public int getColumnsCount() throws IOException
getColumnsCount
in interface SimpleReader
IOException
public List<String> read() throws IOException
read
in interface SimpleReader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface SimpleReader
IOException
public List<String> skip(int lines) throws IOException
skip
in interface SimpleReader
IOException
public CsvPreference getCSVPreferences()
public int getLine()
getLine
in interface SimpleReader