AbstractStreamTableWriter, AbstractTableWriter, CSVWriter, ExcelWriter, HtmlWriter, XmlWriterpublic interface TableWriter
| Modifier and Type | Method | 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(Object[] columns) |
Prints the columns into the table writer.
|
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) 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.IOException - when an exception occursvoid 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.IOException - when an exception occursvoid printRow(Iterator<?> columns) throws IOException
columns - iterator that returns column values.IOException - when an exception occursvoid 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 © 2018. All rights reserved.