|
jPOS 1.6.1 API Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jpos.iso.AsciiPrefixer
public class AsciiPrefixer
AsciiPrefixer constructs a prefix for ASCII messages.
| Field Summary | |
|---|---|
static AsciiPrefixer |
L
A length prefixer for upto 9 chars. |
static AsciiPrefixer |
LL
A length prefixer for upto 99 chars. |
static AsciiPrefixer |
LLL
A length prefixer for upto 999 chars. |
static AsciiPrefixer |
LLLL
A length prefixer for upto 9999 chars. |
static AsciiPrefixer |
LLLLL
A length prefixer for upto 99999 chars. |
static AsciiPrefixer |
LLLLLL
A length prefixer for upto 999999 chars. |
| Constructor Summary | |
|---|---|
AsciiPrefixer(int nDigits)
|
|
| Method Summary | |
|---|---|
int |
decodeLength(byte[] b,
int offset)
Decodes an encoded length. |
void |
encodeLength(int length,
byte[] b)
Fills a byte array with the field length data in raw form. |
int |
getPackedLength()
Returns the number of bytes taken up by the length encoding. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final AsciiPrefixer L
public static final AsciiPrefixer LL
public static final AsciiPrefixer LLL
public static final AsciiPrefixer LLLL
public static final AsciiPrefixer LLLLL
public static final AsciiPrefixer LLLLLL
| Constructor Detail |
|---|
public AsciiPrefixer(int nDigits)
| Method Detail |
|---|
public void encodeLength(int length,
byte[] b)
throws ISOException
Prefixer
encodeLength in interface Prefixerlength - The length to be encoded.b - The byte array to fill with the encoded length.
ISOException
public int decodeLength(byte[] b,
int offset)
Prefixer
decodeLength in interface Prefixerb - The byte array to scan for the length.offset - The offset to start scanning from.
public int getPackedLength()
Prefixer
getPackedLength in interface Prefixer
|
jPOS.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||