public class MultiplexedTableWriter extends Object implements TableWriter
| Constructor and Description |
|---|
MultiplexedTableWriter(TableLayout layout,
List<TableWriter> writers) |
MultiplexedTableWriter(TableLayout layout,
TableWriter... writers) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Finish the table.
|
TableLayout |
getLayout()
Get the layout of this table.
|
void |
writeRow(List<?> row)
Write a row to the table.
|
void |
writeRow(Object... row)
Write a row to the table.
|
public MultiplexedTableWriter(TableLayout layout, List<TableWriter> writers)
public MultiplexedTableWriter(TableLayout layout, TableWriter... writers)
public TableLayout getLayout()
TableWritergetLayout in interface TableWriterpublic void writeRow(Object... row) throws IOException
TableWriterwriteRow in interface TableWriterrow - A row of values. If the table requires more columns, the remaining columns are
empty. The row is copied if necessary; the caller is free to re-use the same array
for returnValue calls.IOException - if an error occurs writing the row.public void writeRow(List<?> row) throws IOException
TableWriterwriteRow in interface TableWriterrow - A row of values. If the table requires more columns, the remaining columns are
empty. The row is copied if necessary; the caller is free to re-use the same array
for returnValue calls.IOException - if an error occurs writing the row.public void close()
throws IOException
TableWriterclose in interface Closeableclose in interface AutoCloseableclose in interface TableWriterIOException