Package org.jpos.tlv.packager
Class IFTB_LLBINARY
- java.lang.Object
-
- org.jpos.iso.ISOFieldPackager
-
- org.jpos.iso.ISOBinaryFieldPackager
-
- org.jpos.iso.IFB_LLBINARY
-
- org.jpos.tlv.packager.IFTB_LLBINARY
-
- All Implemented Interfaces:
TaggedFieldPackager
public class IFTB_LLBINARY extends IFB_LLBINARY implements TaggedFieldPackager
-
-
Field Summary
-
Fields inherited from class org.jpos.iso.ISOFieldPackager
pad, trim
-
-
Constructor Summary
Constructors Constructor Description IFTB_LLBINARY()
IFTB_LLBINARY(int len, java.lang.String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISOComponent
createComponent(int fieldNumber)
component factoryprotected ISOFieldPackager
getTagPackager()
java.lang.String
getToken()
byte[]
pack(ISOComponent c)
Convert the component into a byte[].void
pack(ISOComponent c, java.io.ObjectOutput out)
protected byte[]
packTag(ISOComponent c)
void
setToken(java.lang.String token)
int
unpack(ISOComponent c, byte[] b, int offset)
void
unpack(ISOComponent c, java.io.InputStream in)
Unpack from an input streamprotected int
unpackTag(ISOComponent c, byte[] tagBytes, int offset)
protected void
unpackTag(ISOComponent c, java.io.InputStream in)
-
Methods inherited from class org.jpos.iso.IFB_LLBINARY
setLength
-
Methods inherited from class org.jpos.iso.ISOBinaryFieldPackager
checkLength, getMaxPackedLength, setInterpreter, setPrefixer
-
Methods inherited from class org.jpos.iso.ISOFieldPackager
getDescription, getLength, readBytes, setDescription, setPad, setTrim
-
-
-
-
Constructor Detail
-
IFTB_LLBINARY
public IFTB_LLBINARY()
-
IFTB_LLBINARY
public IFTB_LLBINARY(int len, java.lang.String description)
-
-
Method Detail
-
createComponent
public ISOComponent createComponent(int fieldNumber)
Description copied from class:ISOBinaryFieldPackager
component factory- Overrides:
createComponent
in classISOBinaryFieldPackager
- Parameters:
fieldNumber
- - the field number- Returns:
- the newly created component
-
setToken
public void setToken(java.lang.String token)
- Specified by:
setToken
in interfaceTaggedFieldPackager
-
getToken
public java.lang.String getToken()
- Specified by:
getToken
in interfaceTaggedFieldPackager
-
getTagPackager
protected ISOFieldPackager getTagPackager()
-
packTag
protected byte[] packTag(ISOComponent c) throws ISOException
- Throws:
ISOException
-
unpackTag
protected int unpackTag(ISOComponent c, byte[] tagBytes, int offset) throws ISOException
- Throws:
ISOException
-
unpackTag
protected void unpackTag(ISOComponent c, java.io.InputStream in) throws ISOException, java.io.IOException
- Throws:
ISOException
java.io.IOException
-
pack
public byte[] pack(ISOComponent c) throws ISOException
Description copied from class:ISOBinaryFieldPackager
Convert the component into a byte[].- Overrides:
pack
in classISOBinaryFieldPackager
- Parameters:
c
- - a component- Returns:
- packed component
- Throws:
ISOException
-
unpack
public int unpack(ISOComponent c, byte[] b, int offset) throws ISOException
- Overrides:
unpack
in classISOBinaryFieldPackager
- Parameters:
c
- - the Component to unpackb
- - binary imageoffset
- - starting offset within the binary image- Returns:
- consumed bytes
- Throws:
ISOException
-
unpack
public void unpack(ISOComponent c, java.io.InputStream in) throws java.io.IOException, ISOException
Description copied from class:ISOBinaryFieldPackager
Unpack from an input stream- Overrides:
unpack
in classISOBinaryFieldPackager
- Parameters:
c
- - the Component to unpackin
- - input stream- Throws:
ISOException
java.io.IOException
-
pack
public void pack(ISOComponent c, java.io.ObjectOutput out) throws java.io.IOException, ISOException
- Overrides:
pack
in classISOFieldPackager
- Parameters:
c
- - the Component to unpackout
- - output stream- Throws:
java.io.IOException
ISOException
-
-