|
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.NullPrefixer
public class NullPrefixer
AsciiPrefixer constructs a prefix for ASCII messages.
| Field Summary | |
|---|---|
static NullPrefixer |
INSTANCE
A handy instance of the null prefixer. |
| Method Summary | |
|---|---|
int |
decodeLength(byte[] b,
int offset)
Returns -1 meaning there is no length field. |
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 NullPrefixer INSTANCE
| Method Detail |
|---|
public void encodeLength(int length,
byte[] b)
Prefixer
encodeLength in interface Prefixerlength - The length to be encoded.b - The byte array to fill with the encoded length.
public int decodeLength(byte[] b,
int offset)
decodeLength in interface Prefixerb - The byte array to scan for the length.offset - The offset to start scanning from.
Prefixer.decodeLength(byte[], int)public int getPackedLength()
Prefixer
getPackedLength in interface Prefixerorg.jpos.iso.Prefixer#getLengthInBytes()
|
jPOS.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||