Package org.jpos.tlv.packager
Class IF_FBINARY.FullyConsumingPrefixer
- java.lang.Object
-
- org.jpos.tlv.packager.IF_FBINARY.FullyConsumingPrefixer
-
- All Implemented Interfaces:
Prefixer
- Enclosing class:
- IF_FBINARY
public static class IF_FBINARY.FullyConsumingPrefixer extends java.lang.Object implements Prefixer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
decodeLength(byte[] bytes, int offset)
Decodes an encoded length.void
encodeLength(int length, byte[] bytes)
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
-
encodeLength
public void encodeLength(int length, byte[] bytes)
Description copied from interface:Prefixer
Fills a byte array with the field length data in raw form.- Specified by:
encodeLength
in interfacePrefixer
- Parameters:
length
- The length to be encoded.bytes
- The byte array to fill with the encoded length.
-
decodeLength
public int decodeLength(byte[] bytes, int offset)
Description copied from interface:Prefixer
Decodes an encoded length.- Specified by:
decodeLength
in 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.
-
getPackedLength
public int getPackedLength()
Description copied from interface:Prefixer
Returns the number of bytes taken up by the length encoding.- Specified by:
getPackedLength
in interfacePrefixer
-
-