public class RightTPadder extends RightPadder
Modifier and Type | Field and Description |
---|---|
static RightTPadder |
SPACE_PADDER
A padder for padding spaces on the right.
|
Constructor and Description |
---|
RightTPadder(char pad)
Creates a Right Truncating Padder with a specific pad character.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
pad(java.lang.String data,
int maxLength)
Returns a padded string upto a maximum length.
|
unpad
public static final RightTPadder SPACE_PADDER
public RightTPadder(char pad)
pad
- The padding character. For binary padders, the pad character
is truncated to lower order byte.public java.lang.String pad(java.lang.String data, int maxLength) throws ISOException
Padder
pad
in interface Padder
pad
in class RightPadder
data
- The string to pad.maxLength
- The maximum length of the padded string.ISOException
- on errorPadder.pad(java.lang.String, int)