Class EuroSubFieldPackager
java.lang.Object
org.jpos.iso.ISOBasePackager
org.jpos.iso.packager.EuroSubFieldPackager
- All Implemented Interfaces:
ISOPackager, LogSource
- Direct Known Subclasses:
EuroPackager.Euro48Packager, MasterCardEBCDICSubFieldPackager
-
Field Summary
FieldsFields inherited from class ISOBasePackager
fld, headerLength, logFieldName, logger, realm, thirdBitmapField -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanAlways return falsebyte[]pack(ISOComponent c) pack method that works in conjunction withISOBasePackager.unpack(ISOComponent, byte[]).voidintunpack(ISOComponent m, byte[] b) This packager treats field 0 as a field that may or may not be present before the TLV subelements.Methods inherited from class ISOBasePackager
createISOMsg, fieldUnpackLogger, getBitMapfieldPackager, getDescription, getFieldDescription, getFieldPackager, getFirstField, getHeaderLength, getLogger, getMaxValidField, getRealm, getThirdBitmapField, setFieldPackager, setFieldPackager, setHeaderLength, setThirdBitmapField, unpack
-
Field Details
-
tagPrefixer
-
-
Constructor Details
-
EuroSubFieldPackager
public EuroSubFieldPackager()
-
-
Method Details
-
emitBitMap
Always return false- Overrides:
emitBitMapin classISOBasePackager- Returns:
- true if BitMap have to be emited
-
pack
Description copied from class:ISOBasePackagerpack method that works in conjunction withISOBasePackager.unpack(ISOComponent, byte[]).Handles a tertiary bitmap possibly appearing in Data Element
thirdBitmapField.- Specified by:
packin interfaceISOPackager- Overrides:
packin classISOBasePackager- Parameters:
c- the Component to pack- Returns:
- Message image
- Throws:
ISOException
-
unpack
This packager treats field 0 as a field that may or may not be present before the TLV subelements. Certain types of messages for some 8583 specs that extend this class' behavior (e.g., the Mastercard implementation in classMasterCardEBCDICSubFieldPackager) may not have field 0 present (the TCC in Mastercard's nomenclature). So, if the corresponding isofield packager for field 0 doesn't fill theISOComponent's value, we don't store anything as subfield 0 of m.- Specified by:
unpackin interfaceISOPackager- Overrides:
unpackin classISOBasePackager- Parameters:
m- the Container of this messageb- ISO message image- Returns:
- consumed bytes
- Throws:
ISOException
-
setLogger
-