> I'm able to
> get all the data elements through ISOMsg object. However I'm still
> unable to get the bitmap from the ISOMsg.
>
> Should I iterate over all the fields and check ISOMsg.hasField(..) or
> there is another method to get the bitmap?
The bitmap is kept in field -1 within an ISOMsg, so through
isomsg.getValue(-1), you should get an ISOBitMap object back.
>
> I want to show the bitmap string as well as its binary equivalent.
ISOBitMap.getValue() returns a BitSet, which in turn provides
bitset.nextSetBit(0) to iterate through the bits set.
All slightly awkward, the reason being that jPOS protects you from the
parsing aspect and only exposes methods that have proven useful.
I would be inclined to iterate through the fields - or add a new method
to do so....
...have you considered the isomsg.dump method which produces and
xml-like version of the message and in which has a section of code you
could uncomment (ISOMsg lines 463-467) to include the bitmap in the output.
Can I ask where your user will get the data to input into your utility?
I'm wondering why a human driven step is needed and if it might be avoided.
--
Mark
I was confused for a while. Since i'm trying to get bitmap in field 1
(not -1)
Why its in -1?
8)
--
Mark
--
Mark