public abstract class BERTLVPackager extends GenericPackager
GenericPackager.GenericContentHandler, GenericPackager.GenericEntityResolverfld, 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, setLoggercreateISOMsg, fieldUnpackLogger, getFieldDescription, getFieldPackager, getHeaderLength, getLogger, getRealm, getThirdBitmapField, setFieldPackager, setFieldPackager, setHeaderLength, setThirdBitmapFieldpublic BERTLVPackager()
throws ISOException
ISOExceptionprotected 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 ISOPackagerpack in class ISOBasePackagerm - the Component to packISOException - on errorpublic byte[] pack(ISOComponent m, boolean nested, int startIdx, int endIdx) throws ISOException
ISOExceptionpublic int unpack(ISOComponent m, byte[] b) throws ISOException
unpack in interface ISOPackagerunpack in class ISOBasePackagerm - the Container of this messageb - ISO message imageISOException - on errorpublic int unpack(ISOComponent m, byte[] b, boolean nested) throws ISOException
ISOExceptionprotected 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 ISOPackagerunpack in class ISOBasePackagerjava.io.IOExceptionISOException