java.lang.Object
cl.netswitch.iso.vip8583.VipField<M,Byte>
cl.netswitch.iso.vip8583.VipNumF2<M>
- Type Parameters:
M
- the type of the VIP message.
Numeric Fixed-Length Right-Justified of 2 BCD digits (1 byte).
-
Field Summary
Fields inherited from class cl.netswitch.iso.vip8583.VipField
EBCDIC, EBCDIC_DIGIT0, EBCDIC_SPACE, ONE100
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecodeValue
(ByteBuffer buffer) Decodes the value of this field from the supplied byte buffer.void
encodeValue
(Byte value, ByteArray barray) Encodes the value of this field into the supplied byte array.Methods inherited from class cl.netswitch.iso.vip8583.VipField
chrToEBCDIC, decodeAndSetValue, fieldError, getFormat, getIndex, getMaxLength, getMinLength, getName, getObfuscate, getType, getValue, getValueAndEncode, readChar, readDigit, readFieldBuffer, readFieldBuffer1, readFieldBuffer2, readLengthHeader1, readLengthHeader2, readNumber10, readNumber12, readNumber14, readNumber16, readNumber2, readNumber4, readNumber6, readNumber8, readNumberVL, readPackedLength, readString, readTlvLength, readTlvTag, rightTrim, setObfuscate, setValue, strFromEBCDIC, strToEBCDIC, writeChar, writeMessageValue, writeNumber10, writeNumber12, writeNumber14, writeNumber16, writeNumber2, writeNumber4, writeNumber6, writeNumber8, writeNumberVL, writeString, writeString, writeTlvLength, writeTlvTag, writeValue
-
Constructor Details
-
VipNumF2
Constructs a newVipNumF2
instance.- Parameters:
index
- the index of this field.length
- fixed number of digits of this field.name
- the name of this field.- Throws:
NullPointerException
- ifname
isnull
.IllegalArgumentException
- if an argument is invalid.
-
-
Method Details
-
decodeValue
Decodes the value of this field from the supplied byte buffer.- Specified by:
decodeValue
in classVipField<M,
Byte> - Parameters:
buffer
- the buffer containing the encoded field value.- Returns:
- the value decoded from supplied byte buffer.
- Throws:
NullPointerException
- ifbuffer
isnull
.VipException
- if contents ofbuffer
is invalid.BufferUnderflowException
- ifbuffer
is missing bytes.
-
encodeValue
Encodes the value of this field into the supplied byte array.- Specified by:
encodeValue
in classVipField<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 isnull
.VipException
- ifvalue
is invalid.
-