Class IF_FCHAR.FullyConsumingPrefixer
java.lang.Object
org.jpos.tlv.packager.IF_FCHAR.FullyConsumingPrefixer
- All Implemented Interfaces:
Prefixer
- Enclosing class:
IF_FCHAR
-
Method Summary
Modifier and TypeMethodDescriptionintdecodeLength(byte[] bytes, int offset) Decodes an encoded length.voidencodeLength(int length, byte[] bytes) Fills a byte array with the field length data in raw form.intReturns the number of bytes taken up by the length encoding.
-
Method Details
-
encodeLength
Description copied from interface:PrefixerFills a byte array with the field length data in raw form.- Specified by:
encodeLengthin interfacePrefixer- Parameters:
length- The length to be encoded.bytes- The byte array to fill with the encoded length.- Throws:
ISOException
-
decodeLength
Description copied from interface:PrefixerDecodes an encoded length.- Specified by:
decodeLengthin interfacePrefixer- Parameters:
bytes- The byte array to scan for the length.offset- The offset to start scanning from.- Returns:
- The length in chars of the field data to follow this LengthPrefix.
- Throws:
ISOException
-
getPackedLength
Description copied from interface:PrefixerReturns the number of bytes taken up by the length encoding.- Specified by:
getPackedLengthin interfacePrefixer
-