Class ISOField
java.lang.Object
org.jpos.iso.ISOComponent
org.jpos.iso.ISOField
- All Implemented Interfaces:
Externalizable, Serializable, Cloneable
- Direct Known Subclasses:
ISOVField
implements Leaf for standard fields
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(PrintStream p, String indent) dump this field to PrintStream.byte[]getBytes()get Value as bytes (when possible)intgetKey()valid on Leafs only.getValue()valid on Leafs only.byte[]pack()not available on Leaf - always throw ISOExceptionvoidvoidsetFieldNumber(int fieldNumber) changes this Component field number
Use with care, this method does not change any reference held by a Composite.voidintunpack(byte[] b) not available on Leaf - always throw ISOExceptionvoidunpack(InputStream in) not available on Leaf - always throw ISOExceptionvoidMethods inherited from class ISOComponent
getChildren, getComposite, getMaxField, pack, set, unset
-
Field Details
-
fieldNumber
-
value
-
-
Constructor Details
-
ISOField
public ISOField()No args constructor (required by Externalizable support on ISOMsg) -
ISOField
- Parameters:
n- - the FieldNumber
-
ISOField
-
-
Method Details
-
pack
not available on Leaf - always throw ISOException- Specified by:
packin classISOComponent- Returns:
- never returns
- Throws:
ISOException
-
unpack
not available on Leaf - always throw ISOException- Specified by:
unpackin classISOComponent- Parameters:
b-- Returns:
- never returns
- Throws:
ISOException
-
unpack
not available on Leaf - always throw ISOException- Specified by:
unpackin classISOComponent- Parameters:
in-- Throws:
ISOException
-
getKey
Description copied from class:ISOComponentvalid on Leafs only. The value returned is used by ISOMsg as a key to this field.- Overrides:
getKeyin classISOComponent- Returns:
- Object representing this field number
-
getValue
Description copied from class:ISOComponentvalid on Leafs only.- Overrides:
getValuein classISOComponent- Returns:
- Object representing this field value
-
setValue
- Specified by:
setValuein classISOComponent- Parameters:
obj- - Object representing this field value- Throws:
ISOException
-
getBytes
Description copied from class:ISOComponentget Value as bytes (when possible)- Overrides:
getBytesin classISOComponent- Returns:
- byte[] representing this field
-
dump
dump this field to PrintStream. The output is sorta XML, intended to be easily parsed.- Specified by:
dumpin classISOComponent- Parameters:
p- - print streamindent- - optional indent string
-
setFieldNumber
changes this Component field number
Use with care, this method does not change any reference held by a Composite.- Specified by:
setFieldNumberin classISOComponent- Parameters:
fieldNumber- new field number
-
getFieldNumber
- Specified by:
getFieldNumberin classISOComponent
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-