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 arrayintgetLengthFieldSizeHelper()Helper function for getSize() and getLengthFieldSize()intgetTagFieldSizeHelper()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:
TagSizeExceptionTLVDataSizeException
-
-
Method Detail
-
getLengthFieldSizeHelper
public int getLengthFieldSizeHelper()
Description copied from class:GPTLV_GenericHelper function for getSize() and getLengthFieldSize()- Specified by:
getLengthFieldSizeHelperin classGPTLV_Generic- Returns:
- Size of length field in bytes
-
encodeLength
public byte[] encodeLength()
Description copied from class:GPTLV_GenericEncode length field in byte array- Specified by:
encodeLengthin classGPTLV_Generic- Returns:
- Encoded length field
-
encodeTag
public byte[] encodeTag()
Description copied from class:GPTLV_GenericEncode tag field in byte array- Specified by:
encodeTagin classGPTLV_Generic- Returns:
-
getTagFieldSizeHelper
public int getTagFieldSizeHelper()
Description copied from class:GPTLV_GenericHelper function to determine bytes required to store the tag- Specified by:
getTagFieldSizeHelperin classGPTLV_Generic- Returns:
- Number of bytes required to store tag
-
-