|
||||||||||
| 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| Field Summary | |
|---|---|
protected int |
fieldNumber
|
protected String |
value
|
| Constructor Summary | |
|---|---|
ISOField()
No args constructor (required by Externalizable support on ISOMsg) |
|
ISOField(int n)
|
|
ISOField(int n,
String v)
|
|
| Method Summary | |
|---|---|
void |
dump(PrintStream p,
String indent)
dump this field to PrintStream. |
byte[] |
getBytes()
get Value as bytes (when possible) |
Object |
getKey()
valid on Leafs only. |
Object |
getValue()
valid on Leafs only. |
byte[] |
pack()
not available on Leaf - always throw ISOException |
void |
readExternal(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(Object obj)
|
int |
unpack(byte[] b)
not available on Leaf - always throw ISOException |
void |
unpack(InputStream in)
not available on Leaf - always throw ISOException |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class org.jpos.iso.ISOComponent |
|---|
getChildren, getComposite, getMaxField, pack, set, unset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int fieldNumber
protected String value
| Constructor Detail |
|---|
public ISOField()
public ISOField(int n)
n - - the FieldNumber
public ISOField(int n,
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(InputStream in)
throws ISOException
unpack in class ISOComponentISOExceptionpublic Object getKey()
ISOComponent
getKey in class ISOComponentpublic Object getValue()
ISOComponent
getValue in class ISOComponent
public void setValue(Object obj)
throws ISOException
setValue in class ISOComponentobj - - Object representing this field value
ISOExceptionpublic byte[] getBytes()
ISOComponent
getBytes in class ISOComponent
public void dump(PrintStream p,
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(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||