public class CSVReader extends java.lang.Object implements SimpleReader
| Constructor and Description |
|---|
CSVReader(CSVStoreParameters parameters) |
CSVReader(java.io.FileReader in,
CSVStoreParameters parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getColumnsCount() |
CsvPreference |
getCSVPreferences() |
java.lang.String[] |
getHeader() |
int |
getLine() |
CSVStoreParameters |
getParameters() |
java.util.List<java.lang.String> |
read() |
java.util.List<java.lang.String> |
skip(int lines) |
public CSVReader(java.io.FileReader in,
CSVStoreParameters parameters)
public CSVReader(CSVStoreParameters parameters)
public CSVStoreParameters getParameters()
public java.lang.String[] getHeader()
throws java.io.IOException
getHeader in interface SimpleReaderjava.io.IOExceptionpublic int getColumnsCount()
throws java.io.IOException
getColumnsCount in interface SimpleReaderjava.io.IOExceptionpublic java.util.List<java.lang.String> read()
throws java.io.IOException
read in interface SimpleReaderjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface SimpleReaderjava.io.IOExceptionpublic java.util.List<java.lang.String> skip(int lines)
throws java.io.IOException
skip in interface SimpleReaderjava.io.IOExceptionpublic CsvPreference getCSVPreferences()
public int getLine()
getLine in interface SimpleReader