public class TableFormatter
extends java.lang.Object
ITable objects in a beautiful way,
for example on a console.| Constructor and Description |
|---|
TableFormatter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(ITable table)
Formats a table with all data in a beautiful way.
|
static java.lang.String |
padLeft(java.lang.String s,
int length,
char padChar)
Pads the given String with the given
padChar
up to the given length. |
static java.lang.String |
padRight(java.lang.String s,
int length,
char padChar)
Pads the given String with the given
padChar
up to the given length. |
public java.lang.String format(ITable table) throws DataSetException
table - The table to be formatted in a beautiful wayDataSetExceptionpublic static final java.lang.String padLeft(java.lang.String s,
int length,
char padChar)
padChar
up to the given length.s - length - padChar - public static final java.lang.String padRight(java.lang.String s,
int length,
char padChar)
padChar
up to the given length.s - length - padChar - Copyright © 2002-2018. All Rights Reserved.