public interface TableWriter
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the writer.
|
void |
printComment(String comment)
Prints a comment into the stream.
|
void |
printComment(String comment,
int row,
int column)
Prints a comment into the stream.
|
void |
printRow(Collection<?> columns)
Prints a single row into the CSV stream.
|
void |
printRow(Iterator<?> columns)
Prints a new row into the CSV stream.
|
void |
printRow(Iterator<?> columns,
int size)
Prints a single row into the CSV stream.
|
void |
printRow(Object[] columns)
Prints the columns into the table writer.
|
void printRow(Object[] columns) throws IOException
columns - columns to be written in rowIOException - when an exception occursvoid printRow(Collection<?> columns) throws IOException
columns - collection of column values. An iterator will be used to retrieve values from the collection.IOExceptionvoid printRow(Iterator<?> columns, int size) throws IOException
columns - iterator that returns column values.size - number of values to retrieve from iterator. Method will abort at this size.IOExceptionvoid printRow(Iterator<?> columns) throws IOException
columns - iterator that returns column values.IOExceptionvoid printComment(String comment) throws IOException
comment - comment to writeIOException - when an exception occursvoid printComment(String comment, int row, int column) throws IOException
comment - comment to writerow - index of row for commentcolumn - index of column for commentIOException - when an exception occursvoid close()
Copyright © 2014. All rights reserved.