|
jPOS 1.6.7 API Documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jpos.iso.ISOComponent
org.jpos.iso.ISOField
public class ISOField
implements Leaf for standard fields
ISOComponent,
Serialized Form| Constructor Summary | |
|---|---|
ISOField()
No args constructor (required by Externalizable support on ISOMsg) |
|
ISOField(int n)
|
|
ISOField(int n,
java.lang.String v)
|
|
| Method Summary | |
|---|---|
void |
dump(java.io.PrintStream p,
java.lang.String indent)
dump this field to PrintStream. |
byte[] |
getBytes()
get Value as bytes (when possible) |
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)
|
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)
|
| Methods inherited from class org.jpos.iso.ISOComponent |
|---|
getChildren, getComposite, getMaxField, pack, set, unset |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ISOField()
public ISOField(int n)
n - - the FieldNumber
public ISOField(int n,
java.lang.String v)
n - - fieldNumberv - - fieldValue| Method Detail |
|---|
public byte[] pack()
throws ISOException
pack in class ISOComponentISOException
public int unpack(byte[] b)
throws ISOException
unpack in class ISOComponentISOException
public void unpack(java.io.InputStream in)
throws ISOException
unpack in class ISOComponentISOExceptionpublic java.lang.Object getKey()
ISOComponent
getKey in class ISOComponentpublic java.lang.Object getValue()
ISOComponent
getValue in class ISOComponent
public void setValue(java.lang.Object obj)
throws ISOException
setValue in class ISOComponentobj - - Object representing this field value
ISOExceptionpublic byte[] getBytes()
ISOComponent
getBytes in class ISOComponent
public void dump(java.io.PrintStream p,
java.lang.String indent)
dump in class ISOComponentp - - print streamindent - - optional indent stringpublic void setFieldNumber(int fieldNumber)
setFieldNumber in class ISOComponentfieldNumber - new field number
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
|
jPOS.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||