public class TaggedSequencePackager extends GenericPackager
Modifier and Type | Class and Description |
---|---|
protected class |
TaggedSequencePackager.PrefixUnpackResult |
GenericPackager.GenericContentHandler, GenericPackager.GenericEntityResolver
Modifier and Type | Field and Description |
---|---|
protected int |
length |
protected java.util.Map<java.lang.String,TaggedFieldPackager> |
packagerMap |
protected java.lang.String |
tag |
protected ISOFieldPackager |
tagPackager |
fld, headerLength, logFieldName, logger, realm, thirdBitmapField
Constructor and Description |
---|
TaggedSequencePackager() |
Modifier and Type | Method and Description |
---|---|
protected ISOFieldPackager |
getTagPackager() |
java.lang.String |
getToken() |
byte[] |
pack(ISOComponent m)
Pack the subfield into a byte array
|
void |
setFieldPackager(ISOFieldPackager[] subFieldPackagers) |
void |
setGenericPackagerParams(org.xml.sax.Attributes atts) |
void |
setToken(java.lang.String token)
Specify a placeholder token so that we can determine the tag length.
|
int |
unpack(ISOComponent m,
byte[] b) |
void |
unpack(ISOComponent m,
java.io.InputStream in) |
protected TaggedSequencePackager.PrefixUnpackResult |
unpackPrefixes(ISOComponent m,
byte[] b) |
emitBitMap, getBitMapfieldPackager, getDescription, getFirstField, getMaxValidField, readFile, readFile, setConfiguration, setLogger
createISOMsg, fieldUnpackLogger, getFieldDescription, getFieldPackager, getHeaderLength, getLogger, getRealm, getThirdBitmapField, setFieldPackager, setHeaderLength, setThirdBitmapField
protected ISOFieldPackager tagPackager
protected java.util.Map<java.lang.String,TaggedFieldPackager> packagerMap
protected java.lang.String tag
protected int length
public TaggedSequencePackager() throws ISOException
ISOException
public java.lang.String getToken()
public void setToken(java.lang.String token)
token
- 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) throws java.io.IOException, ISOException
unpack
in interface ISOPackager
unpack
in class ISOBasePackager
java.io.IOException
ISOException
public byte[] pack(ISOComponent m) throws ISOException
pack
in interface ISOPackager
pack
in class ISOBasePackager
m
- the Component to packISOException
- on errorpublic void setGenericPackagerParams(org.xml.sax.Attributes atts)
setGenericPackagerParams
in interface GenericPackagerParams
setGenericPackagerParams
in class GenericPackager
public void setFieldPackager(ISOFieldPackager[] subFieldPackagers)
setFieldPackager
in class ISOBasePackager
protected ISOFieldPackager getTagPackager()
protected TaggedSequencePackager.PrefixUnpackResult unpackPrefixes(ISOComponent m, byte[] b) throws ISOException
ISOException