public interface ICsvListWriter extends ICsvWriter
Modifier and Type | Method and Description |
---|---|
void |
write(List<?> columns)
Writes a List of Objects as columns of a CSV file.
|
void |
write(List<?> columns,
CellProcessor[] processors)
Writes a List of Objects as columns of a CSV file, performing any necessary processing beforehand.
|
void |
write(Object... columns)
Writes a array of Objects as columns of a CSV file.
|
void |
write(String... columns)
Writes an array of strings as columns of a CSV file.
|
getLineNumber, getRowNumber, writeComment, writeHeader
void write(List<?> columns) throws IOException
columns
- the columns to writeIllegalArgumentException
- if columns.size == 0IOException
- If an I/O error occursNullPointerException
- if columns is nullSuperCsvException
- if there was a general exception while writingvoid write(List<?> columns, CellProcessor[] processors) throws IOException
columns
- the columns to writeprocessors
- an array of CellProcessors used to further process data before it is written (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 value returned by
toString() will be written as the column value).IllegalArgumentException
- if columns.size == 0IOException
- If an I/O error occursNullPointerException
- if columns or processors is nullSuperCsvConstraintViolationException
- if a CellProcessor constraint failedSuperCsvException
- if there was a general exception while writing/processingvoid write(Object... columns) throws IOException
columns
- the columns to writeIllegalArgumentException
- if columns.length == 0IOException
- If an I/O error occursNullPointerException
- if columns is nullSuperCsvException
- if there was a general exception while writingvoid write(String... columns) throws IOException
columns
- the columns to writeIllegalArgumentException
- if columns.length == 0IOException
- If an I/O error occursNullPointerException
- if columns is nullSuperCsvException
- if there was a general exception while writingCopyright © 2007–2015 Super CSV. All rights reserved.