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, unpackprotected static Prefixer tagPrefixer
protected java.lang.Integer fieldId
public void setGenericPackagerParams(org.xml.sax.Attributes atts)
setGenericPackagerParams in interface GenericPackagerParamspublic int getFieldNumber()
ISOSubFieldPackagergetFieldNumber in interface ISOSubFieldPackagerprotected boolean emitBitMap()
emitBitMap in class ISOBasePackagerpublic byte[] pack(ISOComponent c) throws ISOException
ISOBasePackagerISOBasePackager.unpack(ISOComponent, byte[]).
Handles a tertiary bitmap possibly appearing in Data Element thirdBitmapField.
pack in interface ISOPackagerpack in class ISOBasePackagerc - 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 ISOPackagerunpack in class ISOBasePackagerm - the Container of this messageb - ISO message imageISOException - on errorpublic void setLogger(Logger logger, java.lang.String realm)
setLogger in interface LogSourcesetLogger in class ISOBasePackager