|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.lxtreme.ols.util.export.CsvExporterImpl
public class CsvExporterImpl
Provides a CSV exporter implementation.
Constructor Summary | |
---|---|
CsvExporterImpl(File aFile)
Creates a new CsvExporterImpl instance. |
|
CsvExporterImpl(File aFile,
char aDelimiter)
Creates a new CsvExporterImpl instance. |
Method Summary | |
---|---|
void |
addRow(Object... aValues)
Adds a new row with cell values to the CSV output. |
void |
close()
Closes this exporter. |
void |
setHeaders(String... aHeaders)
Sets the headers of the CSV file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CsvExporterImpl(File aFile) throws IOException
CsvExporterImpl
instance.
aFile
- the file to export to, cannot be null
.
IOException
- in case of I/O exceptions.public CsvExporterImpl(File aFile, char aDelimiter) throws IOException
CsvExporterImpl
instance.
aFile
- the file to export to, cannot be null
;aDelimiter
- the CSV delimiter to use.
IOException
- in case of I/O exceptions.Method Detail |
---|
public void addRow(Object... aValues) throws IOException
addRow
in interface ExportUtils.CsvExporter
aValues
- the cell values to write in this row.
IOException
- in case of I/O problems.public void close() throws IOException
close
in interface ExportUtils.CsvExporter
IOException
- in case of I/O problems.public void setHeaders(String... aHeaders) throws IOException
setHeaders
in interface ExportUtils.CsvExporter
aHeaders
- the array of header names.
IOException
- in case of I/O problems.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |