Package de.cardcontact.tlv
Class NativeTLVList
- java.lang.Object
-
- de.cardcontact.tlv.NativeTLVList
-
public class NativeTLVList extends java.lang.ObjectTLVList- Author:
- lew
-
-
Constructor Summary
Constructors Constructor Description NativeTLVList(byte[] data)Create a new TLVList from a given EMV encoded byte array.NativeTLVList(GPTLV_Generic tlv)Create a new TLVList
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GPTLV_Genericget(int i)Get the element at the specified positionbyte[]getBytes()Get the TLV encoded byte arrayintgetLength()The number of entries
-
-
-
Constructor Detail
-
NativeTLVList
public NativeTLVList(GPTLV_Generic tlv)
Create a new TLVList- Parameters:
tlv-
-
NativeTLVList
public NativeTLVList(byte[] data) throws TLVEncodingException, TagSizeException, TLVDataSizeExceptionCreate a new TLVList from a given EMV encoded byte array.- Parameters:
data- The EMV encoded data- Throws:
TLVEncodingExceptionTagSizeExceptionTLVDataSizeException
-
-
Method Detail
-
get
public GPTLV_Generic get(int i)
Get the element at the specified position- Parameters:
i- the position- Returns:
- tlv entrie
-
getLength
public int getLength()
The number of entries- Returns:
-
getBytes
public byte[] getBytes()
Get the TLV encoded byte array- Returns:
- tlv byte array
-
-