|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpos.iso.RightPadder
public class RightPadder
Implements the Padder interface for padding strings and byte arrays on the Right.
| Field Summary | |
|---|---|
static RightPadder |
SPACE_PADDER
A padder for padding spaces on the right. |
| Constructor Summary | |
|---|---|
RightPadder(char pad)
Creates a Right Padder with a specific pad character. |
|
| Method Summary | |
|---|---|
String |
pad(String data,
int maxLength)
Returns a padded string upto a maximum length. |
String |
unpad(String paddedData)
Removes the padding from a padded string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final RightPadder SPACE_PADDER
| Constructor Detail |
|---|
public RightPadder(char pad)
pad - The padding character. For binary padders, the pad character
is truncated to lower order byte.| Method Detail |
|---|
public String pad(String data,
int maxLength)
throws ISOException
Padder
pad in interface Padderdata - The string to pad.maxLength - The maximum length of the padded string.
ISOException - on errorPadder.pad(String, int)public String unpad(String paddedData)
Padder
unpad in interface PadderpaddedData - The string to unpad.
Padder.unpad(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||