optional column headers.
separator to use between columns.
prefix to use before first column.
suffix to use after last column.
index of the column (zero-based) to sort by.
Add a row to this table.
Add a row to this table.
Add a row to this table.
Add a row to this table.
optional column headers.
optional column headers.
prefix to use before first column.
prefix to use before first column.
Prints this table to the specified stream.
Prints this table to stdout.
Prints this table to stdout.
Current contents of this table.
Current contents of this table.
separator to use between columns.
separator to use between columns.
index of the column (zero-based) to sort by.
if true
then no newline will be output after the last row.
if true
then no newline will be output after the last row.
suffix to use after last column.
suffix to use after last column.
Formats the contents of this table and returns them as a string.
Formats the contents of this table and returns them as a string.
Creates a new TableFormatter
, copying the settings from this and with the supplied prefix.
Creates a new TableFormatter
, copying the settings from this and with the supplied prefix.
The rows in this table will not be copied to the new table.
prefix to use before first column.
An empty table with the updated settings.
Creates a new TableFormatter
, copying the settings from this and with the supplied separator.
Creates a new TableFormatter
, copying the settings from this and with the supplied separator.
The rows in this table will not be copied to the new table.
separator to use between columns.
An empty table with the updated settings.
Creates a new SortedTableFormatter
, copying the settings from this and with the supplied sort column index.
Creates a new SortedTableFormatter
, copying the settings from this and with the supplied sort column index.
The rows in this table will not be copied to the new table.
index of the column (zero-based) to sort by.
An empty table with the updated settings.
Creates a new TableFormatter
, copying the settings from this and with stripTrailingNewline
enabled.
Creates a new TableFormatter
, copying the settings from this and with stripTrailingNewline
enabled.
The rows in this table will not be copied to the new table.
An empty table with the updated settings.
Creates a new TableFormatter
, copying the settings from this and with the supplied suffix.
Creates a new TableFormatter
, copying the settings from this and with the supplied suffix.
The rows in this table will not be copied to the new table.
suffix to use after last column.
An empty table with the updated settings.
Extension of TableFormatter that sorts the rows by a column before outputting.