java.lang.Object
cl.netswitch.iso.iso8583.IsoField<M,Integer>
cl.netswitch.iso.iso8583.IsoNumF8<M>
- Type Parameters:
M
- the type of the ISO message.
Numeric Fixed-Length Right-Justified of 8 ASCII digits.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecodeValue
(ByteBuffer buffer) Decodes the value of this field from the supplied byte buffer.void
encodeValue
(Integer value, ByteArray barray) Encodes the value of this field into the supplied byte array.Methods inherited from class cl.netswitch.iso.iso8583.IsoField
checkNumericString, decodeAndSetValue, fieldError, getFormat, getIndex, getMaxLength, getMinLength, getName, getObfuscate, getType, getValue, getValueAndEncode, readBigDecimal, readBigInteger, readChar, readDigit, readFieldBuffer, readHex16, readHexBytes, readNumber1, readNumber10, readNumber12, readNumber14, readNumber2, readNumber3, readNumber4, readNumber5, readNumber6, readNumber7, readNumber8, readNumber9, readString, rightTrim, setObfuscate, setValue, writeChar, writeChar, writeHex16, writeHexBytes, writeMessageValue, writeNumber1, writeNumber10, writeNumber12, writeNumber14, writeNumber2, writeNumber3, writeNumber4, writeNumber5, writeNumber6, writeNumber7, writeNumber8, writeNumber9, writeNumberLL, writeNumberLLL, writeNumberLLLL, writeString, writeString, writeValue
-
Constructor Details
-
IsoNumF8
Constructs a newIsoNumF8
instance.- Parameters:
index
- the index of this field.name
- the name of this field.- Throws:
NullPointerException
- ifname
isnull
.
-
-
Method Details
-
decodeValue
Decodes the value of this field from the supplied byte buffer.- Specified by:
decodeValue
in classIsoField<M,
Integer> - Parameters:
buffer
- the buffer containing the encoded field value.- Returns:
- the value decoded from supplied byte buffer.
- Throws:
NullPointerException
- ifbuffer
isnull
.IsoException
- 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 classIsoField<M,
Integer> - Parameters:
value
- the value to be encoded into byte array.barray
- the byte array containing encoded field values.- Throws:
NullPointerException
- if an argument isnull
.IsoException
- ifvalue
is invalid.
-