Copyright © 2008-2011 Ralph Schuster. All Rights Reserved.

csv
Interface TableWriter

All Known Implementing Classes:
AbstractStreamTableWriter, AbstractTableWriter, CSVWriter, ExcelWriter, HtmlWriter, XmlWriter

public interface TableWriter

Introduces an interface for other implementations of table writing interfaces.

Author:
RalphSchuster

Method Summary
 void close()
          Closes the writer.
 void printComment(java.lang.String comment)
          Prints a comment into the stream.
 void printComment(java.lang.String comment, int row, int column)
          Prints a comment into the stream.
 void printRow(java.lang.Object[] columns)
          Prints the columns into the table writer.
 

Method Detail

printRow

void printRow(java.lang.Object[] columns)
              throws java.io.IOException
Prints the columns into the table writer.

Parameters:
columns - columns to be written in row
Throws:
java.io.IOException - when an exception occurs

printComment

void printComment(java.lang.String comment)
                  throws java.io.IOException
Prints a comment into the stream. Note that not all implementations support comments.

Parameters:
comment - comment to write
Throws:
java.io.IOException - when an exception occurs

printComment

void printComment(java.lang.String comment,
                  int row,
                  int column)
                  throws java.io.IOException
Prints a comment into the stream. Note that not all implementations support comments.

Parameters:
comment - comment to write
row - index of row for comment
column - index of column for comment
Throws:
java.io.IOException - when an exception occurs

close

void close()
Closes the writer.


Copyright © 2008-2011 Ralph Schuster. All Rights Reserved.

Copyright © 2008-2011 Ralph Schuster. All Rights Reserved.