java.lang.Object
cl.netswitch.iso.amex8583.AmexField<M,Long>
cl.netswitch.iso.amex8583.AmexNumV2L<M>
- Type Parameters:
M
- the type of the AMEX message.
Numeric Variable-Length (LL) of at most N EBCDIC-500 digits (10 ≤ N ≤ 18).
-
Constructor Summary
ConstructorDescriptionAmexNumV2L
(int index, int minlen, int maxlen, String name) Constructs a newAmexNumV2L
instance.AmexNumV2L
(int index, int maxlen, String name) Constructs a newAmexNumV2L
instance. -
Method Summary
Modifier and TypeMethodDescriptiondecodeValue
(ByteBuffer buffer) Decodes the value of this field from the supplied byte buffer.void
encodeValue
(Long value, ByteArray barray) Encodes the value of this field into the supplied byte array.Methods inherited from class cl.netswitch.iso.amex8583.AmexField
checkNumericString, chrToEBCDIC, decodeAndSetValue, fieldError, getFormat, getIndex, getMaxLength, getMinLength, getName, getObfuscate, getType, getValue, getValueAndEncode, readBigDecimal, readBigInteger, readChar, readDigit, readFieldBuffer, readHex16, readHex8, readHexBytes, readNumber1, readNumber10, readNumber11, readNumber12, readNumber14, readNumber2, readNumber3, readNumber4, readNumber5, readNumber6, readNumber7, readNumber8, readNumber9, readString, rightTrim, setObfuscate, setValue, strFromEBCDIC, strToEBCDIC, writeChar, writeChar, writeHex16, writeHex8, writeHexBytes, writeMessageValue, writeNumber1, writeNumber10, writeNumber11, writeNumber12, writeNumber14, writeNumber2, writeNumber3, writeNumber4, writeNumber5, writeNumber6, writeNumber7, writeNumber8, writeNumber9, writeNumberLLL, writeString, writeString, writeValue
-
Constructor Details
-
AmexNumV2L
Constructs a newAmexNumV2L
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
- ifname
isnull
.IllegalArgumentException
- if an argument is invalid.
-
AmexNumV2L
Constructs a newAmexNumV2L
instance.- Parameters:
index
- the index of this field.minlen
- min number of elements of this field value.maxlen
- max number of elements of this field value.name
- the name of this field.- Throws:
NullPointerException
- if an argument 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 classAmexField<M,
Long> - Parameters:
buffer
- the buffer containing the encoded field value.- Returns:
- the value decoded from supplied byte buffer.
- Throws:
NullPointerException
- ifbuffer
isnull
.AmexException
- 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 classAmexField<M,
Long> - Parameters:
value
- the value to be encoded into byte array.barray
- the byte array containing encoded field values.- Throws:
NullPointerException
- if an argument isnull
.AmexException
- ifvalue
is invalid.
-