public class CsvReader
extends java.lang.Object
Constructor | Description |
---|---|
CsvReader(java.io.Reader reader,
int nbHeaders,
char sep) |
Builds a CSV reader from a standard Reader instance.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasNext() |
Tells if CSV has next rows to read.
|
java.util.List<java.lang.String> |
readHeaderColumns() |
Read header columns, if the case where there is only one line of header
|
java.util.List<java.util.List<java.lang.String>> |
readHeaders() |
Read headers, in the case there are several lines of headers
|
java.util.List<java.lang.String> |
readLine() |
Read a line in the CSV input.
|
public CsvReader(java.io.Reader reader, int nbHeaders, char sep)
reader
- nbHeaders
- sep
- public java.util.List<java.lang.String> readHeaderColumns() throws java.io.IOException
java.io.IOException
public java.util.List<java.util.List<java.lang.String>> readHeaders() throws java.io.IOException
java.io.IOException
public boolean hasNext()
public java.util.List<java.lang.String> readLine() throws java.io.IOException
java.io.IOException