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 Object implements Prefixer
  • Method Details

    • 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 interface Prefixer
      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 interface Prefixer
      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 interface Prefixer