nl.lxtreme.ols.util
Interface ExportUtils.CsvExporter

All Known Implementing Classes:
CsvExporterImpl
Enclosing class:
ExportUtils

public static interface ExportUtils.CsvExporter

Provides a simple CSV data exporter, which is basically a set of (optional) headers at the first line followed by a number of comma-separated values.


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.
 

Method Detail

addRow

void addRow(Object... aValues)
            throws IOException
Adds a new row with cell values to the CSV output.

Parameters:
aValues - the cell values to write in this row.
Throws:
IOException - in case of I/O problems.

close

void close()
           throws IOException
Closes this exporter.

Throws:
IOException - in case of I/O problems.

setHeaders

void setHeaders(String... aHeaders)
                throws IOException
Sets the headers of the CSV file.

Parameters:
aHeaders - the array of header names.
Throws:
IOException - in case of I/O problems.


Copyright © 2012 L'Xtreme IT consultancy. All Rights Reserved.