public abstract class BERTLVPackager extends GenericPackager
GenericPackager.GenericContentHandler, GenericPackager.GenericEntityResolver
fld, headerLength, logFieldName, logger, realm, thirdBitmapField
Constructor and Description |
---|
BERTLVPackager() |
Modifier and Type | Method and Description |
---|---|
protected abstract BinaryInterpreter |
getLengthInterpreter() |
protected abstract BERTLVFormatMapper |
getTagFormatMapper() |
protected abstract BinaryInterpreter |
getTagInterpreter() |
protected abstract BinaryInterpreter |
getValueInterpreter() |
byte[] |
pack(ISOComponent m)
Pack the sub-field into a byte array
|
byte[] |
pack(ISOComponent m,
boolean nested,
int startIdx,
int endIdx) |
protected byte[] |
packValue(java.lang.String tagNameHex,
ISOComponent c) |
int |
unpack(ISOComponent m,
byte[] b) |
int |
unpack(ISOComponent m,
byte[] b,
boolean nested) |
void |
unpack(ISOComponent m,
java.io.InputStream in) |
emitBitMap, getBitMapfieldPackager, getDescription, getFirstField, getMaxValidField, readFile, readFile, setConfiguration, setGenericPackagerParams, setLogger
createISOMsg, fieldUnpackLogger, getFieldDescription, getFieldPackager, getHeaderLength, getLogger, getRealm, getThirdBitmapField, setFieldPackager, setFieldPackager, setHeaderLength, setThirdBitmapField
public BERTLVPackager() throws ISOException
ISOException
protected abstract BinaryInterpreter getTagInterpreter()
protected abstract BinaryInterpreter getLengthInterpreter()
protected abstract BinaryInterpreter getValueInterpreter()
protected abstract BERTLVFormatMapper getTagFormatMapper()
public byte[] pack(ISOComponent m) throws ISOException
pack
in interface ISOPackager
pack
in class ISOBasePackager
m
- the Component to packISOException
- on errorpublic byte[] pack(ISOComponent m, boolean nested, int startIdx, int endIdx) throws ISOException
ISOException
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 int unpack(ISOComponent m, byte[] b, boolean nested) throws ISOException
ISOException
protected byte[] packValue(java.lang.String tagNameHex, ISOComponent c) throws ISOException, UnknownTagNumberException
public 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