Suvodip Mukherjee | 29 Apr 19:46

RE: How to get bitmap field values

Alexandro,
I need to check if the ISOMessage contains my pre-defined ISO fields and
if there are any extra fields present.
So, what I plan to do is pick up the 16/32 character bitmap field and
then compare it with my template bitmap to check that the fields needed
are present. Checking for each field I need with hasField() is a lengthy
process.

Is there a way to get the primary and secondary bitmap fields as
strings, please? like the other fields using m.getValue().

Regards,
Suvodip

________________________________

From: jpos-dev@...
[mailto:jpos-dev@...] On
Behalf Of Alejandro Revilla
Sent: 29 April 2008 18:30
To: jpos-dev@...
Subject: Re: [jpos-dev] How to get bitmap field values

Most people trying to access the bitmap want to do so in order to figure
out if a field is present or not. You can do that in jPOS using ISOMsg's
hasField method (i.e. m.hasField(35)). 

We internally store a bitset in an internal field -1, you can use
code like this:

import java.util.BitSet;

BitSet bset = (BitSet) m.getValue(-1);

But I wonder if you really need to. What's your use case?

On Tue, Apr 29, 2008 at 06:23:02PM +0100, Suvodip Mukherjee wrote:
> Hi,
> Any idea how to get the primary and secondary bitmap values using
jpos.
> I am trying to search for these values by using ISOMsg.hasField(1) and
> ISOMsg.hasField(1).
> However, the bitmap fields are not found. Please help.
> 
> Thanks & regards,
> Suvodip
> 
>
<http://geo.yahoo.com/serv?s=97359714/grpId=293577/grpspId=1705006764/ms
<http://geo.yahoo.com/serv?s=97359714/grpId=293577/grpspId=1705006764/ms
> 
> gId=7907/stime=1209489560/nc1=4507179/nc2=3848641/nc3=5202322> 
> 
> 
> *****************************************************
> This email is issued by a VocaLink group company. It is confidential
and intended for the exclusive use of the addressee only. You should not
disclose its contents to any other person. If you are not the addressee
(or responsible for delivery of the message to the addressee), please
notify the originator immediately by return message and destroy the
original message. The contents of this email will have no contractual
effect unless it is otherwise agreed between a specific VocaLink group
company and the recipient.
> 
> The VocaLink group companies include, among others: VocaLink Limited
(Company No 06119048, VAT No. 907 9619 87) which is registered in
England and Wales at registered office Drake House, Homestead Road,
Rickmansworth, WD3 1FX. United Kingdom, Voca Limited (Company no
1023742, VAT No. 907 9619 87) which is registered in England and Wales
at registered office Drake House, Three Rivers Court, Homestead Road,
Rickmansworth, Hertfordshire. WD3 1FX. United Kingdom, LINK Interchange
Network Limited (Company No 3565766, VAT No. 907 9619 87) which is
registered in England and Wales at registered office Arundel House, 1
Liverpool Gardens, Worthing, West Sussex, BN11 1SL and VocaLink Holdings
Limited (Company No 06119036, VAT No. 907 9619 87) which is registered
in England and Wales at registered office Drake House, Homestead Road,
Rickmansworth, WD3 1FX. United Kingdom.
> 
> The views and opinions expressed in this email may not reflect those
of any member of the VocaLink group. This message and any attachments
have been scanned for viruses prior to leaving the VocaLink group
network; however, VocaLink does not guarantee the security of this
message and will not be responsible for any damages arising as a result
of any virus being passed on or arising from any alteration of this
message by a third party. The VocaLink group may monitor emails sent to
and from the VocaLink group network.
> 
> This message has been checked for all email viruses by MessageLabs.
> *************************************************************
> 
> [Non-text portions of this message have been removed]
> 
> 
> ------------------------------------
> 
> Yahoo! Groups Links
> 
> 
> 

*****************************************************
This email is issued by a VocaLink group company. It is confidential and intended for the exclusive use of
the addressee only. You should not disclose its contents to any other person. If you are not the addressee
(or responsible for delivery of the message to the addressee), please notify the originator immediately
by return message and destroy the original message. The contents of this email will have no contractual
effect unless it is otherwise agreed between a specific VocaLink group company and the recipient.

The VocaLink group companies include, among others: VocaLink Limited (Company No 06119048, VAT No. 907
9619 87) which is registered in England and Wales at registered office Drake House, Homestead Road,
Rickmansworth, WD3 1FX. United Kingdom, Voca Limited (Company no 1023742, VAT No. 907 9619 87) which is
registered in England and Wales at registered office Drake House, Three Rivers Court, Homestead Road,
Rickmansworth, Hertfordshire. WD3 1FX. United Kingdom, LINK Interchange Network Limited (Company No
3565766, VAT No. 907 9619 87) which is registered in England and Wales at registered office Arundel House,
1 Liverpool Gardens, Worthing, West Sussex, BN11 1SL and VocaLink Holdings Limited (Company No
06119036, VAT No. 907 9619 87) which is registered in England and Wales at registered off
 ice Drake House, Homestead Road, Rickmansworth, WD3 1FX. United Kingdom.

The views and opinions expressed in this email may not reflect those of any member of the VocaLink group.
This message and any attachments have been scanned for viruses prior to leaving the VocaLink group
network; however, VocaLink does not guarantee the security of this message and will not be responsible
for any damages arising as a result of any virus being passed on or arising from any alteration of this
message by a third party. The VocaLink group may monitor emails sent to and from the VocaLink group network.

This message has been checked for all email viruses by MessageLabs.
*************************************************************

[Non-text portions of this message have been removed]

------------------------------------


Gmane