|
||||||||||
| 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.ISOBinaryField
public class ISOBinaryField
implements Leaf for binary fields See the API User's Guide for details.
ISOComponent,
Serialized Form| Field Summary | |
|---|---|
protected int |
fieldNumber
|
protected byte[] |
value
|
| Constructor Summary | |
|---|---|
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)
|
|
| 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)
|
String |
toString()
|
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, wait, wait, wait |
| Field Detail |
|---|
protected int fieldNumber
protected byte[] value
| Constructor Detail |
|---|
public ISOBinaryField()
public ISOBinaryField(int n)
n - - the FieldNumber
public ISOBinaryField(int n,
byte[] v)
n - - fieldNumberv - - fieldValue
public ISOBinaryField(int n,
byte[] v,
int offset,
int len)
n - - fieldNumberv - - fieldValueoffset - - starting offsetlen - - field length| Method Detail |
|---|
public void setFieldNumber(int fieldNumber)
setFieldNumber in class ISOComponentfieldNumber - new field number
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 String toString()
toString in class Object
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 | |||||||||