public class CsvUtilReader extends Object
| Modifier and Type | Field and Description |
|---|---|
static char |
DEFAULT_QUOTE_CHARACTER
The default quote character to use if none is supplied to the
constructor.
|
static char |
DEFAULT_SEPARATOR
The default separator to use if none is supplied to the constructor.
|
static int |
DEFAULT_SKIP_LINES
The default line to start reading.
|
| Constructor and Description |
|---|
CsvUtilReader(Reader reader)
Constructs CSVReader using a comma for the separator.
|
CsvUtilReader(Reader reader,
char separator)
Constructs CSVReader with supplied separator.
|
CsvUtilReader(Reader reader,
char separator,
char quotechar)
Constructs CSVReader with supplied separator and quote char.
|
CsvUtilReader(Reader reader,
char separator,
char quotechar,
int line)
Constructs CSVReader with supplied separator and quote char.
|
public static final char DEFAULT_SEPARATOR
public static final char DEFAULT_QUOTE_CHARACTER
public static final int DEFAULT_SKIP_LINES
public CsvUtilReader(Reader reader)
reader - the reader to an underlying CSV source.public CsvUtilReader(Reader reader, char separator)
reader - the reader to an underlying CSV source.separator - the delimiter to use for separating entries.public CsvUtilReader(Reader reader, char separator, char quotechar)
reader - the reader to an underlying CSV source.separator - the delimiter to use for separating entriesquotechar - the character to use for quoted elementspublic CsvUtilReader(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 List<String[]> readAll() throws IOException
IOException - if bad things happen during the readpublic String[] readNext() throws IOException
IOException - if bad things happen during the readpublic void close()
throws IOException
IOException - if the close failsCopyright © 2014. All Rights Reserved.