public interface ICsvListWriter extends ICsvWriter
Modifier and Type | Method and Description |
---|---|
void |
write(java.util.List<?> columns)
Writes a List of Objects as columns of a CSV file.
|
void |
write(java.util.List<?> columns,
CellProcessor[] processors)
Writes a List of Objects as columns of a CSV file, performing any necessary processing beforehand.
|
void |
write(java.lang.Object... columns)
Writes a array of Objects as columns of a CSV file.
|
void |
write(java.lang.String... columns)
Writes an array of strings as columns of a CSV file.
|
getLineNumber, getRowNumber, writeComment, writeHeader
void write(java.util.List<?> columns) throws java.io.IOException
columns
- the columns to writejava.lang.IllegalArgumentException
- if columns.size == 0java.io.IOException
- If an I/O error occursjava.lang.NullPointerException
- if columns is nullSuperCsvException
- if there was a general exception while writingvoid write(java.util.List<?> columns, CellProcessor[] processors) throws java.io.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).java.lang.IllegalArgumentException
- if columns.size == 0java.io.IOException
- If an I/O error occursjava.lang.NullPointerException
- if columns or processors is nullSuperCsvConstraintViolationException
- if a CellProcessor constraint failedSuperCsvException
- if there was a general exception while writing/processingvoid write(java.lang.Object... columns) throws java.io.IOException
columns
- the columns to writejava.lang.IllegalArgumentException
- if columns.length == 0java.io.IOException
- If an I/O error occursjava.lang.NullPointerException
- if columns is nullSuperCsvException
- if there was a general exception while writingvoid write(java.lang.String... columns) throws java.io.IOException
columns
- the columns to writejava.lang.IllegalArgumentException
- if columns.length == 0java.io.IOException
- If an I/O error occursjava.lang.NullPointerException
- if columns is nullSuperCsvException
- if there was a general exception while writingCopyright © 2007-2014 Super CSV. All Rights Reserved.