Modifier and Type | Field and Description |
---|---|
static NullPadder |
INSTANCE
The only instance you need
|
Constructor and Description |
---|
NullPadder() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
pad(java.lang.String data,
int maxLength)
Returns a padded string upto a maximum length.
|
java.lang.String |
unpad(java.lang.String paddedData)
(non-Javadoc)
|
public static final NullPadder INSTANCE
public java.lang.String pad(java.lang.String data, int maxLength)
Padder