Class DefaultICCBERTLVFormatMapper
java.lang.Object
org.jpos.tlv.packager.bertlv.DefaultICCBERTLVFormatMapper
- All Implemented Interfaces:
BERTLVFormatMapper
Default
BERTLVFormatMapper that resolves a TLV tag number to an
TLVDataFormat via the EMV standard tag table, deferring proprietary
tags to getProprietaryTagType(Integer).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the data format for the given BER-TLV tag.protected EMVProprietaryTagTypegetProprietaryTagType(Integer tagNumber) Subclasses should override this method to provide an implementation of org.jpos.emv.EMVProprietaryTagType
-
Field Details
-
INSTANCE
Shared singleton instance.
-
-
Constructor Details
-
DefaultICCBERTLVFormatMapper
public DefaultICCBERTLVFormatMapper()Public constructor; preferINSTANCEfor repeated use.
-
-
Method Details
-
getFormat
Description copied from interface:BERTLVFormatMapperReturns the data format for the given BER-TLV tag.- Specified by:
getFormatin interfaceBERTLVFormatMapper- Parameters:
tagNumber- the numeric tag identifier- Returns:
- the data format for the tag
- Throws:
ISOException- if the tag is unknown or invalid
-
getProprietaryTagType
protected EMVProprietaryTagType getProprietaryTagType(Integer tagNumber) throws UnknownTagNumberException Subclasses should override this method to provide an implementation of org.jpos.emv.EMVProprietaryTagType- Parameters:
tagNumber- proprietary tag number to resolve- Returns:
- EMVProprietaryTagType
- Throws:
UnknownTagNumberException- if the tag number is not registered with this mapper
-