Class IsoNumFX<M>

java.lang.Object
cl.netswitch.iso.iso8583.IsoField<M,BigInteger>
cl.netswitch.iso.iso8583.IsoNumFX<M>
Type Parameters:
M - the type of the ISO message.

public class IsoNumFX<M> extends IsoField<M,BigInteger>
Numeric Fixed-Length Right-Justified of N ASCII digits (19 ≤ N).
  • Constructor Details

    • IsoNumFX

      public IsoNumFX(int index, int maxlen, String name)
      Constructs a new IsoNumFX instance.
      Parameters:
      index - the index of this field.
      maxlen - max number of elements of this field value.
      name - the name of this field.
      Throws:
      NullPointerException - if name is null.
  • Method Details

    • decodeValue

      public BigInteger decodeValue(ByteBuffer buffer)
      Decodes the value of this field from the supplied byte buffer.
      Specified by:
      decodeValue in class IsoField<M,BigInteger>
      Parameters:
      buffer - the buffer containing the encoded field value.
      Returns:
      the value decoded from supplied byte buffer.
      Throws:
      NullPointerException - if buffer is null.
      IsoException - if contents of buffer is invalid.
    • encodeValue

      public void encodeValue(BigInteger value, cl.netswitch.lib.util.ByteArray barray)
      Encodes the value of this field into the supplied byte array.
      Specified by:
      encodeValue in class IsoField<M,BigInteger>
      Parameters:
      value - the value to be encoded into byte array.
      barray - the byte array containing encoded field values.
      Throws:
      NullPointerException - if an argument is null.
      IsoException - if value is invalid.