Class VipBinVL<M>
java.lang.Object
cl.netswitch.iso.vip8583.VipField<M,byte[]>
cl.netswitch.iso.vip8583.VipBinVL<M>
- Type Parameters:
M- the type of the VIP message.
Binary Variable-Length of at most N bytes (1 ≤ N ≤ 255).
-
Field Summary
Fields inherited from class VipField
EBCDIC, EBCDIC_DIGIT0, EBCDIC_SPACE, ONE100 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]decodeValue(ByteBuffer buffer) Decodes the value of this field from the supplied byte buffer.voidencodeValue(byte[] value, ByteArray barray) Encodes the value of this field into the supplied byte array.Methods inherited from class 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
-
VipBinVL
Constructs a newVipBinVLinstance.- Parameters:
index- the index of this field.maxlen- max number of elements of this field value.name- the name of this field.- Throws:
NullPointerException- ifnameisnull.IllegalArgumentException- if an argument is invalid.
-
VipBinVL
Constructs a newVipBinVLinstance.- 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- ifnameisnull.IllegalArgumentException- if an argument is invalid.
-
-
Method Details
-
decodeValue
Decodes the value of this field from the supplied byte buffer.- Specified by:
decodeValuein classVipField<M,byte[]> - Parameters:
buffer- the buffer containing the encoded field value.- Returns:
- the value decoded from supplied byte buffer.
- Throws:
NullPointerException- ifbufferisnull.VipException- if contents ofbufferis invalid.
-
encodeValue
Encodes the value of this field into the supplied byte array.- Specified by:
encodeValuein 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- ifvalueis invalid.
-