public class EuroSubFieldPackager extends ISOBasePackager
Modifier and Type | Field and Description |
---|---|
protected static Prefixer |
tagPrefixer |
fld, headerLength, logFieldName, logger, realm, thirdBitmapField
Constructor and Description |
---|
EuroSubFieldPackager() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
emitBitMap()
Always return false
|
byte[] |
pack(ISOComponent c)
pack method that works in conjunction with
ISOBasePackager.unpack(ISOComponent, byte[]) . |
int |
unpack(ISOComponent m,
byte[] b)
This packager treats field 0 as a field that may or may not be present before the TLV subelements.
|
createISOMsg, getBitMapfieldPackager, getDescription, getFieldDescription, getFieldPackager, getFirstField, getHeaderLength, getLogger, getMaxValidField, getRealm, getThirdBitmapField, setFieldPackager, setFieldPackager, setHeaderLength, setLogger, setThirdBitmapField, unpack
protected static Prefixer tagPrefixer
protected boolean emitBitMap()
emitBitMap
in class ISOBasePackager
public byte[] pack(ISOComponent c) throws ISOException
ISOBasePackager
ISOBasePackager.unpack(ISOComponent, byte[])
.
Handles a tertiary bitmap possibly appearing in Data Element thirdBitmapField
.
pack
in interface ISOPackager
pack
in class ISOBasePackager
c
- the Component to packISOException
- on errorpublic int unpack(ISOComponent m, byte[] b) throws ISOException
MasterCardEBCDICSubFieldPackager
) may not have field 0 present (the TCC in Mastercard's nomenclature).
So, if the corresponding isofield packager for field 0 doesn't fill the ISOComponent
's value,
we don't store anything as subfield 0 of m.unpack
in interface ISOPackager
unpack
in class ISOBasePackager
m
- the Container of this messageb
- ISO message imageISOException
- on error