Class BERTLVPackager
java.lang.Object
org.jpos.iso.ISOBasePackager
org.jpos.iso.packager.GenericPackager
org.jpos.tlv.packager.bertlv.BERTLVPackager
- All Implemented Interfaces:
Configurable, ISOPackager, GenericPackagerParams, LogSource
- Direct Known Subclasses:
DefaultICCBERTLVPackager
Packager for ISO 8825 BER TLV values.
-
Nested Class Summary
Nested classes/interfaces inherited from class GenericPackager
GenericPackager.GenericContentHandler, GenericPackager.GenericEntityResolver -
Field Summary
Fields inherited from class ISOBasePackager
fld, headerLength, logFieldName, logger, realm, thirdBitmapField -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract BinaryInterpreterprotected abstract BERTLVFormatMapperprotected abstract BinaryInterpreterprotected abstract BinaryInterpreterbyte[]pack(ISOComponent m) Pack the sub-field into a byte arraybyte[]pack(ISOComponent m, boolean nested, int startIdx, int endIdx) protected byte[]packValue(String tagNameHex, ISOComponent c) intunpack(ISOComponent m, byte[] b) intunpack(ISOComponent m, byte[] b, boolean nested) voidunpack(ISOComponent m, InputStream in) Methods inherited from class GenericPackager
emitBitMap, getBitMapfieldPackager, getDescription, getFirstField, getMaxValidField, readFile, readFile, setConfiguration, setGenericPackagerParams, setLoggerMethods inherited from class ISOBasePackager
createISOMsg, fieldUnpackLogger, getFieldDescription, getFieldPackager, getHeaderLength, getLogger, getRealm, getThirdBitmapField, setFieldPackager, setFieldPackager, setHeaderLength, setThirdBitmapField
-
Constructor Details
-
BERTLVPackager
- Throws:
ISOException
-
-
Method Details
-
getTagInterpreter
-
getLengthInterpreter
-
getValueInterpreter
-
getTagFormatMapper
-
pack
Pack the sub-field into a byte array- Specified by:
packin interfaceISOPackager- Overrides:
packin classISOBasePackager- Parameters:
m- the Component to pack- Returns:
- Message image
- Throws:
ISOException
-
pack
- Throws:
ISOException
-
unpack
- Specified by:
unpackin interfaceISOPackager- Overrides:
unpackin classISOBasePackager- Parameters:
m- the Container of this messageb- ISO message image- Returns:
- consumed bytes
- Throws:
ISOException
-
unpack
- Throws:
ISOException
-
packValue
protected byte[] packValue(String tagNameHex, ISOComponent c) throws ISOException, UnknownTagNumberException -
unpack
- Specified by:
unpackin interfaceISOPackager- Overrides:
unpackin classISOBasePackager- Throws:
IOExceptionISOException
-