public class CSVReader
extends java.lang.Object
| Constructor and Description |
|---|
CSVReader(java.io.Reader reader)
Constructs CSVReader using a comma for the separator.
|
CSVReader(java.io.Reader reader,
char separator,
char quotechar,
int line)
Constructs CSVReader with supplied separator and quote char.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying reader.
|
java.lang.String[] |
readNext()
Reads the next line from the buffer and converts to a string array.
|
public CSVReader(java.io.Reader reader)
reader - the reader to an underlying CSV source.public CSVReader(java.io.Reader reader,
char separator,
char quotechar,
int line)
reader - the reader to an underlying CSV source.separator - the delimiter to use for separating entriesquotechar - the character to use for quoted elementsline - the line number to skip for start readingpublic java.lang.String[] readNext()
throws java.io.IOException
java.io.IOException - if bad things happen during the readpublic void close()
throws java.io.IOException
java.io.IOException - if the close fails