Package com.solab.iso8583.codecs
Class BigIntBcdCodec
- java.lang.Object
-
- com.solab.iso8583.codecs.BigIntBcdCodec
-
- All Implemented Interfaces:
CustomBinaryField<java.math.BigInteger>
,CustomField<java.math.BigInteger>
,CustomFieldDecoder<java.math.BigInteger>
,CustomFieldEncoder<java.math.BigInteger>
public class BigIntBcdCodec extends java.lang.Object implements CustomBinaryField<java.math.BigInteger>
A custom field encoder/decoder to be used with LLBIN/LLLBIN fields that contain BigIntegers in BCD encoding.
-
-
Constructor Summary
Constructors Constructor Description BigIntBcdCodec()
BigIntBcdCodec(boolean rightPadded)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigInteger
decodeBinaryField(byte[] value, int pos, int len)
java.math.BigInteger
decodeField(java.lang.String value)
byte[]
encodeBinaryField(java.math.BigInteger value)
java.lang.String
encodeField(java.math.BigInteger value)
-
-
-
Method Detail
-
decodeBinaryField
public java.math.BigInteger decodeBinaryField(byte[] value, int pos, int len)
- Specified by:
decodeBinaryField
in interfaceCustomBinaryField<java.math.BigInteger>
-
encodeBinaryField
public byte[] encodeBinaryField(java.math.BigInteger value)
- Specified by:
encodeBinaryField
in interfaceCustomBinaryField<java.math.BigInteger>
-
decodeField
public java.math.BigInteger decodeField(java.lang.String value)
- Specified by:
decodeField
in interfaceCustomFieldDecoder<java.math.BigInteger>
-
encodeField
public java.lang.String encodeField(java.math.BigInteger value)
- Specified by:
encodeField
in interfaceCustomFieldEncoder<java.math.BigInteger>
-
-