public class ISOBinaryField extends ISOComponent implements java.lang.Cloneable, java.io.Externalizable
ISOComponent,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected int |
fieldNumber |
protected byte[] |
value |
| Constructor and Description |
|---|
ISOBinaryField()
No args constructor
(required by Externalizable support on ISOMsg)
|
ISOBinaryField(int n) |
ISOBinaryField(int n,
byte[] v) |
ISOBinaryField(int n,
byte[] v,
int offset,
int len) |
| Modifier and Type | Method and Description |
|---|---|
void |
dump(java.io.PrintStream p,
java.lang.String indent)
dump this field to PrintStream.
|
byte[] |
getBytes()
get Value as bytes (when possible)
|
int |
getFieldNumber() |
java.lang.Object |
getKey()
valid on Leafs only.
|
java.lang.Object |
getValue()
valid on Leafs only.
|
byte[] |
pack()
not available on Leaf - always throw ISOException
|
void |
readExternal(java.io.ObjectInput in) |
void |
setFieldNumber(int fieldNumber)
changes this Component field number
Use with care, this method does not change any reference held by a Composite. |
void |
setValue(java.lang.Object obj) |
java.lang.String |
toString() |
int |
unpack(byte[] b)
not available on Leaf - always throw ISOException
|
void |
unpack(java.io.InputStream in)
not available on Leaf - always throw ISOException
|
void |
writeExternal(java.io.ObjectOutput out) |
getChildren, getComposite, getMaxField, pack, set, unsetpublic ISOBinaryField()
public ISOBinaryField(int n)
n - - the FieldNumberpublic ISOBinaryField(int n,
byte[] v)
n - - fieldNumberv - - fieldValuepublic ISOBinaryField(int n,
byte[] v,
int offset,
int len)
n - - fieldNumberv - - fieldValueoffset - - starting offsetlen - - field lengthpublic void setFieldNumber(int fieldNumber)
setFieldNumber in class ISOComponentfieldNumber - new field numberpublic int getFieldNumber()
getFieldNumber in class ISOComponentpublic byte[] pack()
throws ISOException
pack in class ISOComponentISOExceptionpublic int unpack(byte[] b)
throws ISOException
unpack in class ISOComponentISOExceptionpublic void unpack(java.io.InputStream in)
throws ISOException
unpack in class ISOComponentISOExceptionpublic java.lang.Object getKey()
ISOComponentgetKey in class ISOComponentpublic java.lang.Object getValue()
ISOComponentgetValue in class ISOComponentpublic void setValue(java.lang.Object obj)
throws ISOException
setValue in class ISOComponentobj - - Object representing this field valueISOExceptionpublic byte[] getBytes()
ISOComponentgetBytes in class ISOComponentpublic void dump(java.io.PrintStream p,
java.lang.String indent)
dump in class ISOComponentp - - print streamindent - - optional indent stringpublic java.lang.String toString()
toString in class java.lang.Objectpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException