Package org.jpos.iso
Class ISOBitMap
- java.lang.Object
-
- org.jpos.iso.ISOComponent
-
- org.jpos.iso.ISOBitMap
-
- All Implemented Interfaces:
java.lang.Cloneable
public class ISOBitMap extends ISOComponent implements java.lang.Cloneable
implements Leaf for Bitmap field- See Also:
ISOComponent
-
-
Field Summary
Fields Modifier and Type Field Description protected int
fieldNumber
protected java.util.BitSet
value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dump(java.io.PrintStream p, java.lang.String indent)
dump this field to PrintStream.int
getFieldNumber()
java.lang.Object
getKey()
valid on Leafs only.java.lang.Object
getValue()
valid on Leafs only.byte[]
pack()
not available on Leaf - always throw ISOExceptionvoid
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 ISOExceptionvoid
unpack(java.io.InputStream in)
not available on Leaf - always throw ISOException-
Methods inherited from class org.jpos.iso.ISOComponent
getBytes, getChildren, getComposite, getMaxField, pack, set, unset
-
-
-
-
Field Detail
-
fieldNumber
protected int fieldNumber
-
value
protected java.util.BitSet value
-
-
Method Detail
-
setFieldNumber
public void setFieldNumber(int fieldNumber)
changes this Component field number
Use with care, this method does not change any reference held by a Composite.- Specified by:
setFieldNumber
in classISOComponent
- Parameters:
fieldNumber
- new field number
-
getFieldNumber
public int getFieldNumber()
- Specified by:
getFieldNumber
in classISOComponent
-
pack
public byte[] pack() throws ISOException
not available on Leaf - always throw ISOException- Specified by:
pack
in classISOComponent
- Throws:
ISOException
-
unpack
public int unpack(byte[] b) throws ISOException
not available on Leaf - always throw ISOException- Specified by:
unpack
in classISOComponent
- Throws:
ISOException
-
unpack
public void unpack(java.io.InputStream in) throws ISOException
not available on Leaf - always throw ISOException- Specified by:
unpack
in classISOComponent
- Throws:
ISOException
-
getKey
public java.lang.Object getKey()
Description copied from class:ISOComponent
valid on Leafs only. The value returned is used by ISOMsg as a key to this field.- Overrides:
getKey
in classISOComponent
- Returns:
- Object representing this field number
-
getValue
public java.lang.Object getValue()
Description copied from class:ISOComponent
valid on Leafs only.- Overrides:
getValue
in classISOComponent
- Returns:
- Object representing this field value
-
setValue
public void setValue(java.lang.Object obj) throws ISOException
- Specified by:
setValue
in classISOComponent
- Parameters:
obj
- - Object representing this field value- Throws:
ISOException
-
dump
public void dump(java.io.PrintStream p, java.lang.String indent)
dump this field to PrintStream. The output is sorta XML, intended to be easily parsed.- Specified by:
dump
in classISOComponent
- Parameters:
p
- - print streamindent
- - optional indent string
-
-