public final class TextUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
appendField(java.lang.StringBuilder out,
java.lang.String data,
int colSize,
boolean alignRight)
Output field with specified length.
|
static java.lang.String |
showTextTable(java.lang.String[] columnHeaders,
java.lang.String[][] table,
boolean[] alignRight)
Draw text table with columns align.
|
public static java.lang.String showTextTable(java.lang.String[] columnHeaders, java.lang.String[][] table, boolean[] alignRight)
columnHeaders
- column headerstable
- table datapublic static void appendField(java.lang.StringBuilder out, java.lang.String data, int colSize, boolean alignRight)
out
- output streamdata
- field datacolSize
- field size