public class IFTB_LLBINARY extends IFB_LLBINARY implements TaggedFieldPackager
pad, trim
Constructor and Description |
---|
IFTB_LLBINARY() |
IFTB_LLBINARY(int len,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
ISOComponent |
createComponent(int fieldNumber)
component factory
|
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) |
void |
unpack(ISOComponent c,
java.io.InputStream in)
Unpack from an input stream
|
protected int |
unpackTag(ISOComponent c,
byte[] tagBytes,
int offset) |
protected void |
unpackTag(ISOComponent c,
java.io.InputStream in) |
setLength
checkLength, getMaxPackedLength, setInterpreter, setPrefixer
getDescription, getLength, readBytes, setDescription, setPad, setTrim
public IFTB_LLBINARY()
public IFTB_LLBINARY(int len, java.lang.String description)
public ISOComponent createComponent(int fieldNumber)
ISOBinaryFieldPackager
createComponent
in class ISOBinaryFieldPackager
fieldNumber
- - the field numberpublic 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
ISOBinaryFieldPackager
pack
in class ISOBinaryFieldPackager
c
- - a componentISOException
public int unpack(ISOComponent c, byte[] b, int offset) throws ISOException
unpack
in class ISOBinaryFieldPackager
c
- - the Component to unpackb
- - binary imageoffset
- - starting offset within the binary imageISOException
public void unpack(ISOComponent c, java.io.InputStream in) throws java.io.IOException, ISOException
ISOBinaryFieldPackager
unpack
in class ISOBinaryFieldPackager
c
- - the Component to unpackin
- - input streamISOException
java.io.IOException
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