Class VipNumF4<M>

java.lang.Object
cl.netswitch.iso.vip8583.VipField<M,Short>
cl.netswitch.iso.vip8583.VipNumF4<M>
Type Parameters:
M - the type of the VIP message.

public class VipNumF4<M> extends VipField<M,Short>
Numeric Fixed-Length Right-Justified of 4 BCD digits (2 bytes).
  • Constructor Details

    • VipNumF4

      public VipNumF4(int index, int length, String name)
      Constructs a new VipNumFRP2 instance.
      Parameters:
      index - the index of this field.
      length - fixed number of digits of this field.
      name - the name of this field.
      Throws:
      NullPointerException - if name is null.
      IllegalArgumentException - if an argument is invalid.
  • Method Details

    • decodeValue

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

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