Package de.cardcontact.tlv
Class NativeTLVList
- java.lang.Object
-
- de.cardcontact.tlv.NativeTLVList
-
public class NativeTLVList extends java.lang.Object
TLVList- 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_Generic
get(int i)
Get the element at the specified positionbyte[]
getBytes()
Get the TLV encoded byte arrayint
getLength()
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, TLVDataSizeException
Create a new TLVList from a given EMV encoded byte array.- Parameters:
data
- The EMV encoded data- Throws:
TLVEncodingException
TagSizeException
TLVDataSizeException
-
-
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
-
-