Package org.jpos.tlv.packager
Class BinaryHexTaggedSequencePackager.TagPackager
- java.lang.Object
-
- org.jpos.iso.ISOFieldPackager
-
- org.jpos.tlv.packager.BinaryHexTaggedSequencePackager.TagPackager
-
- Enclosing class:
- BinaryHexTaggedSequencePackager
public static class BinaryHexTaggedSequencePackager.TagPackager extends ISOFieldPackager
-
-
Field Summary
-
Fields inherited from class org.jpos.iso.ISOFieldPackager
pad, trim
-
-
Constructor Summary
Constructors Constructor Description TagPackager(int len, java.lang.String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxPackedLength()
byte[]
pack(ISOComponent c)
int
unpack(ISOComponent c, byte[] b, int offset)
-
Methods inherited from class org.jpos.iso.ISOFieldPackager
createComponent, getDescription, getLength, pack, readBytes, setDescription, setLength, setPad, setTrim, unpack
-
-
-
-
Constructor Detail
-
TagPackager
public TagPackager(int len, java.lang.String description)
-
-
Method Detail
-
getMaxPackedLength
public int getMaxPackedLength()
- Specified by:
getMaxPackedLength
in classISOFieldPackager
-
pack
public byte[] pack(ISOComponent c) throws ISOException
- Specified by:
pack
in classISOFieldPackager
- Parameters:
c
- - a component- Returns:
- packed component
- Throws:
ISOException
-
unpack
public int unpack(ISOComponent c, byte[] b, int offset) throws ISOException
- Specified by:
unpack
in classISOFieldPackager
- Parameters:
c
- - the Component to unpackb
- - binary imageoffset
- - starting offset within the binary image- Returns:
- consumed bytes
- Throws:
ISOException
-
-