Package de.cardcontact.tlv
Class GPTLV_EMV
- java.lang.Object
-
- de.cardcontact.tlv.GPTLV_Generic
-
- de.cardcontact.tlv.GPTLV_EMV
-
public class GPTLV_EMV extends GPTLV_Generic
Class implementing EMV encoded TLV objects- Author:
- Andreas Schwier (www.cardcontact.de)
-
-
Field Summary
-
Fields inherited from class de.cardcontact.tlv.GPTLV_Generic
data, INVALID_SIZE, tag
-
-
Constructor Summary
Constructors Constructor Description GPTLV_EMV(int tag, byte[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
encodeLength()
Encode length field in byte arraybyte[]
encodeTag()
Encode tag field in byte arrayint
getLengthFieldSizeHelper()
Helper function for getSize() and getLengthFieldSize()int
getTagFieldSizeHelper()
Helper function to determine bytes required to store the tag
-
-
-
Constructor Detail
-
GPTLV_EMV
public GPTLV_EMV(int tag, byte[] data) throws TagSizeException, TLVDataSizeException
- Throws:
TagSizeException
TLVDataSizeException
-
-
Method Detail
-
getLengthFieldSizeHelper
public int getLengthFieldSizeHelper()
Description copied from class:GPTLV_Generic
Helper function for getSize() and getLengthFieldSize()- Specified by:
getLengthFieldSizeHelper
in classGPTLV_Generic
- Returns:
- Size of length field in bytes
-
encodeLength
public byte[] encodeLength()
Description copied from class:GPTLV_Generic
Encode length field in byte array- Specified by:
encodeLength
in classGPTLV_Generic
- Returns:
- Encoded length field
-
encodeTag
public byte[] encodeTag()
Description copied from class:GPTLV_Generic
Encode tag field in byte array- Specified by:
encodeTag
in classGPTLV_Generic
- Returns:
-
getTagFieldSizeHelper
public int getTagFieldSizeHelper()
Description copied from class:GPTLV_Generic
Helper function to determine bytes required to store the tag- Specified by:
getTagFieldSizeHelper
in classGPTLV_Generic
- Returns:
- Number of bytes required to store tag
-
-