|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbunit.util.TableFormatter
public class TableFormatter
Simple formatter to print out ITable objects in a beautiful way,
for example on a console.
| Constructor Summary | |
|---|---|
TableFormatter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableFormatter()
| Method Detail |
|---|
public java.lang.String format(ITable table)
throws DataSetException
table - The table to be formatted in a beautiful way
DataSetException
public 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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||