public interface TableWriter extends Reader
| Modifier and Type | Method and Description |
|---|---|
boolean |
newColumn()
Creates a new column in the data source
|
boolean |
newRow()
Creates a new row in the data source
|
void |
writeCell(Object cell)
Writes the value in the current cell of the data source
|
void |
writeCells(List<List<Object>> cells)
Write all cells to the data source in one step
|
void |
writeCellsAsArray(Object[][] cells)
Write all cells to the data source in one step
|
boolean newRow()
throws IOException
true if the row was created, false otherwiseIOException - if a new row can not be createdboolean newColumn()
throws IOException
true if the column was created, false otherwiseIOException - if a new column can not be createdvoid writeCell(Object cell) throws IOException
cell - valueIOException - if the data can not be writtenvoid writeCells(List<List<Object>> cells) throws IOException
cells - the cells to be written to the data sourceIOException - if the data can not be writtenvoid writeCellsAsArray(Object[][] cells) throws IOException
cells - the cells to be written to the data sourceIOException - if the data can not be writtenCopyright © 2016. All rights reserved.