public class IFTA_LLLCHAR extends IFA_LLLCHAR implements TaggedFieldPackager
pad, trim
Constructor and Description |
---|
IFTA_LLLCHAR() |
IFTA_LLLCHAR(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) |
setLength
checkLength, getMaxPackedLength, setInterpreter, setPadder, setPrefixer, setTrim
getDescription, getLength, readBytes, setDescription, setPad
public IFTA_LLLCHAR()
public IFTA_LLLCHAR(int len, java.lang.String description)
public ISOComponent createComponent(int fieldNumber)
createComponent
in class ISOFieldPackager
public void setToken(java.lang.String token)
setToken
in interface TaggedFieldPackager
public java.lang.String getToken()
getToken
in interface TaggedFieldPackager
protected ISOFieldPackager getTagPackager()
protected byte[] packTag(ISOComponent c) throws ISOException
ISOException
protected int unpackTag(ISOComponent c, byte[] tagBytes, int offset) throws ISOException
ISOException
protected void unpackTag(ISOComponent c, java.io.InputStream in) throws ISOException, java.io.IOException
ISOException
java.io.IOException
public byte[] pack(ISOComponent c) throws ISOException
ISOStringFieldPackager
pack
in class ISOStringFieldPackager
c
- - a componentISOException
public int unpack(ISOComponent c, byte[] b, int offset) throws ISOException
ISOStringFieldPackager
unpack
in class ISOStringFieldPackager
c
- The component to unpack into.b
- The byte array to unpack.offset
- The index in the byte array to start unpacking from.ISOException
public void unpack(ISOComponent c, java.io.InputStream in) throws java.io.IOException, ISOException
ISOStringFieldPackager
unpack
in class ISOStringFieldPackager
c
- 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.ISOException
public void pack(ISOComponent c, java.io.ObjectOutput out) throws java.io.IOException, ISOException
pack
in class ISOFieldPackager
c
- - the Component to unpackout
- - output streamjava.io.IOException
ISOException