JavaScript is disabled on your browser.
public class PadMessage
extends Object
A message object that pads the output if the text is shorter than
the given length. This is usefull when concating multiple messages,
which should appear in a table like style.
Author:
Thomas Morgner
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
Returns a string representation of the message.
Constructor Details
PadMessage
public PadMessage (Object message,
int length)
Creates a new message.
Parameters:
message
- the message.
length
- the padding size.
Method Details
toString
Returns a string representation of the message.
Overrides:
toString
in class Object
Returns:
the string.