public class EuroSubFieldPackager extends ISOBasePackager implements GenericPackagerParams, ISOSubFieldPackager
Modifier and Type | Field and Description |
---|---|
protected java.lang.Integer |
fieldId |
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
|
int |
getFieldNumber()
Get current composite field number
|
byte[] |
pack(ISOComponent c)
pack method that works in conjunction with
ISOBasePackager.unpack(ISOComponent, byte[]) . |
void |
setGenericPackagerParams(org.xml.sax.Attributes atts) |
void |
setLogger(Logger logger,
java.lang.String realm) |
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, fieldUnpackLogger, getBitMapfieldPackager, getDescription, getFieldDescription, getFieldPackager, getFirstField, getHeaderLength, getLogger, getMaxValidField, getRealm, getThirdBitmapField, setFieldPackager, setFieldPackager, setHeaderLength, setThirdBitmapField, unpack
protected static Prefixer tagPrefixer
protected java.lang.Integer fieldId
public void setGenericPackagerParams(org.xml.sax.Attributes atts)
setGenericPackagerParams
in interface GenericPackagerParams
public int getFieldNumber()
ISOSubFieldPackager
getFieldNumber
in interface ISOSubFieldPackager
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 errorpublic void setLogger(Logger logger, java.lang.String realm)
setLogger
in interface LogSource
setLogger
in class ISOBasePackager