Class AmexNumF1<M>

java.lang.Object
cl.netswitch.iso.amex8583.AmexField<M,Byte>
cl.netswitch.iso.amex8583.AmexNumF1<M>
Type Parameters:
M - the type of the AMEX message.

public class AmexNumF1<M> extends AmexField<M,Byte>
Numeric Fixed-Length Right-Justified of 1 EBCDIC-500 digit.
  • Constructor Details

    • AmexNumF1

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

    • decodeValue

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

      public void encodeValue(Byte value, ByteArray barray)
      Encodes the value of this field into the supplied byte array.
      Specified by:
      encodeValue in class AmexField<M,Byte>
      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.
      AmexException - if value is invalid.