public interface ICsvListReader extends ICsvReader
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
read()
Reads a row of a CSV file and returns a List of Strings containing each column.
|
java.util.List<java.lang.Object> |
read(CellProcessor... processors)
Reads a row of a CSV file and returns a List of Objects containing each column.
|
get, getHeader, getLineNumber, getRowNumber, getUntokenizedRow, length
java.util.List<java.lang.String> read() throws java.io.IOException
java.io.IOException
- if an I/O error occurredSuperCsvException
- if there was a general exception while reading/processingjava.util.List<java.lang.Object> read(CellProcessor... processors) throws java.io.IOException
processors
- 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).java.io.IOException
- if an I/O error occurredjava.lang.NullPointerException
- if processors is nullSuperCsvConstraintViolationException
- if a CellProcessor constraint failedSuperCsvException
- if there was a general exception while reading/processingCopyright © 2007-2012 Super CSV. All Rights Reserved.