|
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.ISOBinaryField
public class ISOBinaryField
implements Leaf for binary fields See the API User's Guide for details.
ISOComponent,
Serialized Form| 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(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)
|
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)
|
| 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, wait, wait, wait |
| 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(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 java.lang.String toString()
toString in class java.lang.Object
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 | ||||||||