public abstract class ISOComponent
extends java.lang.Object
implements java.lang.Cloneable
ISOMsg,
ISOField,
ISOException| Constructor and Description |
|---|
ISOComponent() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
dump(java.io.PrintStream p,
java.lang.String indent) |
byte[] |
getBytes()
get Value as bytes (when possible)
|
java.util.Map |
getChildren()
dummy behaviour - return empty map
|
ISOComponent |
getComposite()
In order to interchange Composites and Leafs we use
getComposite().
|
abstract int |
getFieldNumber() |
java.lang.Object |
getKey()
valid on Leafs only.
|
int |
getMaxField()
a Composite must override this function
|
java.lang.Object |
getValue()
valid on Leafs only.
|
abstract byte[] |
pack() |
void |
pack(java.io.OutputStream out) |
void |
set(ISOComponent c)
Set a field within this message
|
abstract void |
setFieldNumber(int fieldNumber)
changes this Component field number
Use with care, this method does not change any reference held by a Composite. |
abstract void |
setValue(java.lang.Object obj) |
abstract int |
unpack(byte[] b) |
abstract void |
unpack(java.io.InputStream in) |
void |
unset(int fldno)
Unset a field
|
public void set(ISOComponent c) throws ISOException
c - - a componentISOExceptionpublic void unset(int fldno)
throws ISOException
fldno - - the field numberISOExceptionpublic ISOComponent getComposite()
public java.lang.Object getKey()
throws ISOException
ISOExceptionpublic java.lang.Object getValue()
throws ISOException
ISOExceptionpublic byte[] getBytes()
throws ISOException
ISOExceptionpublic int getMaxField()
public java.util.Map getChildren()
public abstract void setFieldNumber(int fieldNumber)
fieldNumber - new field numberpublic abstract int getFieldNumber()
public abstract void setValue(java.lang.Object obj)
throws ISOException
ISOExceptionpublic abstract byte[] pack()
throws ISOException
ISOExceptionpublic abstract int unpack(byte[] b)
throws ISOException
ISOExceptionpublic abstract void dump(java.io.PrintStream p,
java.lang.String indent)
public void pack(java.io.OutputStream out)
throws java.io.IOException,
ISOException
java.io.IOExceptionISOExceptionpublic abstract void unpack(java.io.InputStream in)
throws java.io.IOException,
ISOException
java.io.IOExceptionISOException