Package org.jpos.tlv.packager
Class IFTA_LLNUM
- java.lang.Object
-
- org.jpos.iso.ISOFieldPackager
-
- org.jpos.iso.ISOStringFieldPackager
-
- org.jpos.iso.IFA_LLNUM
-
- org.jpos.tlv.packager.IFTA_LLNUM
-
- All Implemented Interfaces:
TaggedFieldPackager
public class IFTA_LLNUM extends IFA_LLNUM implements TaggedFieldPackager
-
-
Field Summary
-
Fields inherited from class org.jpos.iso.ISOFieldPackager
pad, trim
-
-
Constructor Summary
Constructors Constructor Description IFTA_LLNUM()
IFTA_LLNUM(int len, java.lang.String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ISOComponent
createComponent(int fieldNumber)
protected 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)
Unpacks the byte array into the component.void
unpack(ISOComponent c, java.io.InputStream in)
Unpack the input stream into the component.protected int
unpackTag(ISOComponent c, byte[] tagBytes, int offset)
protected void
unpackTag(ISOComponent c, java.io.InputStream in)
-
Methods inherited from class org.jpos.iso.ISOStringFieldPackager
checkLength, getMaxPackedLength, setInterpreter, setPadder, setPrefixer, setTrim
-
Methods inherited from class org.jpos.iso.ISOFieldPackager
getDescription, getLength, readBytes, setDescription, setPad
-
-
-
-
Constructor Detail
-
IFTA_LLNUM
public IFTA_LLNUM()
-
IFTA_LLNUM
public IFTA_LLNUM(int len, java.lang.String description)
-
-
Method Detail
-
createComponent
public ISOComponent createComponent(int fieldNumber)
- Overrides:
createComponent
in classISOFieldPackager
-
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:ISOStringFieldPackager
Convert the component into a byte[].- Overrides:
pack
in classISOStringFieldPackager
- Parameters:
c
- - a component- Returns:
- byte array representation of component
- Throws:
ISOException
-
unpack
public int unpack(ISOComponent c, byte[] b, int offset) throws ISOException
Description copied from class:ISOStringFieldPackager
Unpacks the byte array into the component.- Overrides:
unpack
in classISOStringFieldPackager
- Parameters:
c
- The component to unpack into.b
- The byte array to unpack.offset
- The index in the byte array to start unpacking from.- Returns:
- The number of bytes consumed unpacking the component.
- Throws:
ISOException
-
unpack
public void unpack(ISOComponent c, java.io.InputStream in) throws java.io.IOException, ISOException
Description copied from class:ISOStringFieldPackager
Unpack the input stream into the component.- Overrides:
unpack
in classISOStringFieldPackager
- Parameters:
c
- The Component to unpack into.in
- Input stream where the packed bytes come from.- Throws:
java.io.IOException
- Thrown if there's a problem reading the input stream.ISOException
-
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
-
-