public class ASCIITable extends Object
| Modifier and Type | Method and Description |
|---|---|
static ASCIITable |
fromData(String[] headers,
String[][] data)
Creates a new table using the given headers and data.
|
String |
toString() |
ASCIITable |
withTableFormat(TableFormatAbstract tableFormat)
Changes the format of the table (how it will be displayed; which characters to use) to the provided format.
|
public static ASCIITable fromData(String[] headers, String[][] data)
headers - The headers of the table. Each index is a new column, in order from left to right.data - The data of the table, in the format String[row][column]. Newlines are allowed.toString().public ASCIITable withTableFormat(TableFormatAbstract tableFormat)
tableFormat - The format to use. By default, the table will already use UTF8TableFormat.Copyright © 2017. All rights reserved.