public class Base1SubFieldPackager extends ISOBasePackager
ISOPackager
,
ISOBasePackager
,
ISOComponent
fld, headerLength, logFieldName, logger, realm, thirdBitmapField
Constructor and Description |
---|
Base1SubFieldPackager() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
emitBitMap() |
protected ISOFieldPackager |
getBitMapfieldPackager() |
protected int |
getFirstField()
usually 2 for normal fields, 1 for bitmap-less or ANSI X9.2
|
byte[] |
pack(ISOComponent m)
Pack the subfield into a byte array
|
int |
unpack(ISOComponent m,
byte[] b)
Unpack a packed subfield into
its corresponding ISOComponent
|
createISOMsg, fieldUnpackLogger, getDescription, getFieldDescription, getFieldPackager, getHeaderLength, getLogger, getMaxValidField, getRealm, getThirdBitmapField, setFieldPackager, setFieldPackager, setHeaderLength, setLogger, setThirdBitmapField, unpack
protected boolean emitBitMap()
emitBitMap
in class ISOBasePackager
protected int getFirstField()
ISOBasePackager
getFirstField
in class ISOBasePackager
protected ISOFieldPackager getBitMapfieldPackager()
getBitMapfieldPackager
in class ISOBasePackager
public int unpack(ISOComponent m, byte[] b) throws ISOException
unpack
in interface ISOPackager
unpack
in class ISOBasePackager
m
- the Container of this messageb
- ISO message imageISOException
- on errorpublic byte[] pack(ISOComponent m) throws ISOException
pack
in interface ISOPackager
pack
in class ISOBasePackager
m
- the Component to packISOException
- on error