|
jPOS 1.6.1 API Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Prefixer
This interface is used to encode and decode length prefixes.
| 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. |
| Method Detail |
|---|
void encodeLength(int length,
byte[] b)
throws ISOException
length - The length to be encoded.b - The byte array to fill with the encoded length.
ISOException
int decodeLength(byte[] b,
int offset)
throws ISOException
b - The byte array to scan for the length.offset - The offset to start scanning from.
ISOExceptionint getPackedLength()
|
jPOS.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||