|
||||||||||
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 | |
---|---|
String |
format(ITable table)
Formats a table with all data in a beautiful way. |
static String |
padLeft(String s,
int length,
char padChar)
Pads the given String with the given padChar
up to the given length . |
static String |
padRight(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 String format(ITable table) throws DataSetException
table
- The table to be formatted in a beautiful way
DataSetException
public static final String padLeft(String s, int length, char padChar)
padChar
up to the given length
.
s
- length
- padChar
-
public static final String padRight(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 |