net.sourceforge.jdbcexporter
Interface DelimiterFormatter

All Known Implementing Classes:
CSVDelimiterFormatter, FixedDelimiterFormatter, PatternDelimiterFormatter, XMLDelimiterFormatter

public interface DelimiterFormatter

The DelimiterFormatter interface defines a set of methods used to write a set of rows into a file.

Version:
0.6
Author:
Chris Nagy

Method Summary
 void finish()
          Finishs the writing of rows to the output source.
 java.lang.String formatValues(ColumnValue[] values)
          Creates a string representing the row of column values.
 void setWriter(java.io.Writer output)
          Sets the output source for the formatter.
 void writeNextRow(java.lang.String row)
          Writes the next row to the output source.
 

Method Detail

setWriter

public void setWriter(java.io.Writer output)
Sets the output source for the formatter.

Parameters:
output - the destination of the data

formatValues

public java.lang.String formatValues(ColumnValue[] values)
Creates a string representing the row of column values.

Parameters:
values - the column values
Returns:
the string

writeNextRow

public void writeNextRow(java.lang.String row)
                  throws java.io.IOException
Writes the next row to the output source.

Parameters:
row - the next row
Throws:
java.io.IOException - if an error occurs while writing the next row

finish

public void finish()
            throws java.io.IOException
Finishs the writing of rows to the output source.

Throws:
java.io.IOException