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