public class IFTA_LLNUM extends IFA_LLNUM implements TaggedFieldPackager
pad, trim| Constructor and Description |
|---|
IFTA_LLNUM() |
IFTA_LLNUM(int len,
java.lang.String description) |
| Modifier and Type | Method and 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) |
checkLength, getMaxPackedLength, setInterpreter, setPadder, setPrefixer, setTrimgetDescription, getLength, readBytes, setDescription, setPadpublic IFTA_LLNUM()
public IFTA_LLNUM(int len,
java.lang.String description)
public ISOComponent createComponent(int fieldNumber)
createComponent in class ISOFieldPackagerpublic void setToken(java.lang.String token)
setToken in interface TaggedFieldPackagerpublic java.lang.String getToken()
getToken in interface TaggedFieldPackagerprotected ISOFieldPackager getTagPackager()
protected byte[] packTag(ISOComponent c) throws ISOException
ISOExceptionprotected int unpackTag(ISOComponent c, byte[] tagBytes, int offset) throws ISOException
ISOExceptionprotected void unpackTag(ISOComponent c, java.io.InputStream in) throws ISOException, java.io.IOException
ISOExceptionjava.io.IOExceptionpublic byte[] pack(ISOComponent c) throws ISOException
ISOStringFieldPackagerpack in class ISOStringFieldPackagerc - - a componentISOExceptionpublic int unpack(ISOComponent c, byte[] b, int offset) throws ISOException
ISOStringFieldPackagerunpack in class ISOStringFieldPackagerc - The component to unpack into.b - The byte array to unpack.offset - The index in the byte array to start unpacking from.ISOExceptionpublic void unpack(ISOComponent c, java.io.InputStream in) throws java.io.IOException, ISOException
ISOStringFieldPackagerunpack in class ISOStringFieldPackagerc - The Component to unpack into.in - Input stream where the packed bytes come from.java.io.IOException - Thrown if there's a problem reading the input stream.ISOExceptionpublic void pack(ISOComponent c, java.io.ObjectOutput out) throws java.io.IOException, ISOException
pack in class ISOFieldPackagerc - - the Component to unpackout - - output streamjava.io.IOExceptionISOException