public class CsvListReader extends AbstractCsvReader implements ICsvListReader
| Constructor and Description |
|---|
CsvListReader(ITokenizer tokenizer,
CsvPreference preferences)
Constructs a new CsvListReader with the supplied (custom) Tokenizer and CSV preferences.
|
CsvListReader(Reader reader,
CsvPreference preferences)
Constructs a new CsvListReader with the supplied Reader and CSV preferences.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
read()
Reads a row of a CSV file and returns a List of Strings containing each column.
|
List<Object> |
read(CellProcessor... processors)
Reads a row of a CSV file and returns a List of Objects containing each column.
|
close, get, getColumns, getHeader, getLineNumber, getPreferences, getRowNumber, getUntokenizedRow, length, readRowclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getHeader, getLineNumber, getRowNumber, getUntokenizedRow, lengthpublic CsvListReader(Reader reader, CsvPreference preferences)
reader - the readerpreferences - the CSV preferencesNullPointerException - if reader or preferences are nullpublic CsvListReader(ITokenizer tokenizer, CsvPreference preferences)
tokenizer - the tokenizerpreferences - the CSV preferencesNullPointerException - if tokenizer or preferences are nullpublic List<String> read() throws IOException
read in interface ICsvListReaderIOException - if an I/O error occurredpublic List<Object> read(CellProcessor... processors) throws IOException
read in interface ICsvListReaderprocessors - an array of CellProcessors used to further process data before it is added to the List (each element
in the processors array corresponds with a CSV column - the number of processors should match the
number of columns). A null entry indicates no further processing is required (the unprocessed
String value will be added to the List).IOException - if an I/O error occurredCopyright © 2007-2012 Super CSV. All Rights Reserved.