|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpos.iso.LeftPadder
public class LeftPadder
Implements the Padder interface for padding strings and byte arrays on the left.
| Field Summary | |
|---|---|
static LeftPadder |
ZERO_PADDER
A padder for padding zeros on the left. |
| Constructor Summary | |
|---|---|
LeftPadder(char pad)
Creates a Left 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)
(non-Javadoc) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final LeftPadder ZERO_PADDER
| Constructor Detail |
|---|
public LeftPadder(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 errororg.jpos.iso.Padder#pad(java.lang.String, int, char)public String unpad(String paddedData)
unpad in interface PadderpaddedData - The string to unpad.
org.jpos.iso.Padder#unpad(java.lang.String, char)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||