Class IF_FCHAR.FullyConsumingPrefixer

java.lang.Object
org.jpos.tlv.packager.IF_FCHAR.FullyConsumingPrefixer
All Implemented Interfaces:
Prefixer
Enclosing class:
IF_FCHAR

public static class IF_FCHAR.FullyConsumingPrefixer extends Object implements Prefixer
  • Method Details

    • encodeLength

      public void encodeLength(int length, byte[] bytes) throws ISOException
      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.
      Throws:
      ISOException
    • decodeLength

      public int decodeLength(byte[] bytes, int offset) throws ISOException
      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.
      Throws:
      ISOException
    • 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