Class ISOBitMap

All Implemented Interfaces:
Cloneable

public class ISOBitMap extends ISOComponent implements Cloneable
implements Leaf for Bitmap field
See Also:
  • Field Details

    • fieldNumber

      protected int fieldNumber
      The ISO field number.
    • value

      protected BitSet value
      The BitSet representing the bitmap.
  • Constructor Details

    • ISOBitMap

      public ISOBitMap(int n)
      Constructs a bitmap with the given field number.
      Parameters:
      n - - the FieldNumber
    • ISOBitMap

      public ISOBitMap(int n, BitSet v)
      Constructs a bitmap.
      Parameters:
      n - - fieldNumber
      v - - field value (Bitset)
      See Also:
  • Method Details

    • 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 class ISOComponent
      Parameters:
      fieldNumber - new field number
    • getFieldNumber

      public int getFieldNumber()
      Description copied from class: ISOComponent
      Returns the field number this component occupies within its container.
      Specified by:
      getFieldNumber in class ISOComponent
      Returns:
      the field number
    • pack

      public byte[] pack() throws ISOException
      not available on Leaf - always throw ISOException
      Specified by:
      pack in class ISOComponent
      Returns:
      packed bytes
      Throws:
      ISOException - on ISO processing error
    • unpack

      public int unpack(byte[] b) throws ISOException
      not available on Leaf - always throw ISOException
      Specified by:
      unpack in class ISOComponent
      Parameters:
      b - packed bytes
      Returns:
      number of bytes consumed
      Throws:
      ISOException - on ISO processing error
    • unpack

      public void unpack(InputStream in) throws ISOException
      not available on Leaf - always throw ISOException
      Specified by:
      unpack in class ISOComponent
      Parameters:
      in - source stream
      Throws:
      ISOException - on ISO processing error
    • getKey

      public 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 class ISOComponent
      Returns:
      Object representing this field number
    • getValue

      public Object getValue()
      Description copied from class: ISOComponent
      valid on Leafs only.
      Overrides:
      getValue in class ISOComponent
      Returns:
      Object representing this field value
    • setValue

      public void setValue(Object obj) throws ISOException
      Description copied from class: ISOComponent
      Sets the value of this component.
      Specified by:
      setValue in class ISOComponent
      Parameters:
      obj - - Object representing this field value
      Throws:
      ISOException - on ISO processing error
    • dump

      public void dump(PrintStream p, String indent)
      dump this field to PrintStream. The output is sorta XML, intended to be easily parsed.
      Specified by:
      dump in class ISOComponent
      Parameters:
      p - - print stream
      indent - - optional indent string