public final class TableWriters extends Object
| Constructor and Description |
|---|
TableWriters() |
| Modifier and Type | Method and Description |
|---|---|
static TableWriter |
prefixed(TableWriter base,
List<?> prefix)
Create a table writer that writes data with common leading columns to an
underlying table writer.
|
static TableWriter |
prefixed(TableWriter base,
Object... prefix)
Create a table writer that writes data with common leading columns to an
underlying table writer.
|
public static TableWriter prefixed(@WillNotClose TableWriter base, List<?> prefix)
base - The base table writer for output.prefix - The values of the leading columns in this table writer.base.getColumnCount() - prefix.size() columns. Each
row is prefixed with the values in prefix.public static TableWriter prefixed(@WillNotClose TableWriter base, Object... prefix)
base - The base table writer for output.prefix - The values of the leading columns in this table writer.base.getColumnCount() - prefix.length columns. Each
row is prefixed with the values in prefix.