public class GenericTaggedFieldsPackager extends GenericPackager implements ISOSubFieldPackager
GenericPackager.GenericContentHandler, GenericPackager.GenericEntityResolver
fld, headerLength, logFieldName, logger, realm, thirdBitmapField
Constructor and Description |
---|
GenericTaggedFieldsPackager() |
Modifier and Type | Method and Description |
---|---|
int |
getFieldNumber()
Get current composite field number
|
protected boolean |
isPackingLenient()
Subclasses may override this method if a lenient packing is required when a
field-to-tag mapping cannot be found.
|
protected boolean |
isUnpackingLenient()
Subclasses may override this method if a lenient unpacking is required when a
tag-to-field mapping cannot be found.
|
byte[] |
pack(ISOComponent m)
Pack the subfield into a byte array
|
void |
setFieldPackager(ISOFieldPackager[] fld) |
void |
setGenericPackagerParams(org.xml.sax.Attributes atts) |
int |
unpack(ISOComponent m,
byte[] b) |
void |
unpack(ISOComponent m,
java.io.InputStream in) |
protected CharTagMap |
unpackTLV(byte[] b) |
emitBitMap, getBitMapfieldPackager, getDescription, getFirstField, getMaxValidField, readFile, readFile, setConfiguration, setLogger
createISOMsg, fieldUnpackLogger, getFieldDescription, getFieldPackager, getHeaderLength, getLogger, getRealm, getThirdBitmapField, setFieldPackager, setHeaderLength, setThirdBitmapField
public GenericTaggedFieldsPackager() throws ISOException
ISOException
public int getFieldNumber()
ISOSubFieldPackager
getFieldNumber
in interface ISOSubFieldPackager
protected CharTagMap unpackTLV(byte[] b)
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 void unpack(ISOComponent m, java.io.InputStream in)
unpack
in interface ISOPackager
unpack
in class ISOBasePackager
public byte[] pack(ISOComponent m) throws ISOException
pack
in interface ISOPackager
pack
in class ISOBasePackager
m
- the Component to packISOException
public void setFieldPackager(ISOFieldPackager[] fld)
setFieldPackager
in class ISOBasePackager
public void setGenericPackagerParams(org.xml.sax.Attributes atts)
setGenericPackagerParams
in interface GenericPackagerParams
setGenericPackagerParams
in class GenericPackager
protected boolean isPackingLenient()
protected boolean isUnpackingLenient()