Package org.dbunit.util
Class TableFormatter
java.lang.Object
org.dbunit.util.TableFormatter
Simple formatter to print out
ITable objects in a beautiful way, for
example on a console.- Since:
- 2.4.1
- Version:
- $Revision$ $Date$
- Author:
- gommma (gommma AT users.sourceforge.net), Last changed by: $Author$
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TableFormatter
public TableFormatter()
-
-
Method Details
-
padLeft
Pads the given String with the givenpadCharup to the givenlength.- Parameters:
s-length-padChar-- Returns:
- The padded string
-
padRight
Pads the given String with the givenpadCharup to the givenlength.- Parameters:
s-length-padChar-- Returns:
- The padded string
-
format
Formats a table with all data in a beautiful way. Can be useful to print out the table data on a console.- Parameters:
table- The table to be formatted in a beautiful way- Returns:
- The table data as a formatted String
- Throws:
DataSetException
-