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

csv
Interface TableWriter

All Known Implementing Classes:
AbstractTableWriter, CSVWriter, ExcelWriter

public interface TableWriter

Introduces an interface for other implementations of table writing interfaces.

Author:
Ralph Schuster

Method Summary
 void close()
          Closes the writer.
 void printComment(java.lang.String comment)
          Prints a comment into the stream.
 void printRow(java.lang.Object[] columns)
          Prints the columns into the table writer.
 void setOutputStream(java.io.OutputStream out)
          Sets the underlying writer.
 

Method Detail

setOutputStream

void setOutputStream(java.io.OutputStream out)
Sets the underlying writer.

Parameters:
out - output stream to be used.

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

close

void close()
Closes the writer.


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

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