--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage.
Please support jPOS, contact: sa...@jpos.org
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
... being that you don't really need to use the BCDInterpreter yourself
(unless you *really* want to).
What you need to do is pick or set-up your Packager to have it's field
types as BCD.
take a visual look at :-
/jpos6/build/modules/jpos/cfg/packager/iso87ascii.xml
and
/jpos6/build/modules/jpos/cfg/packager/iso87binary.xml
to see the differences and the use iso87binary.xml as your starting
point and adjust that to match your message specification.
(Just as Alejandro said in the first reply). Don't worry though your
efforts will not be wasted, you are now probably quite familiar with the
internal works, but I do hope the above information is a pleasant surprise!
> PS : I am new to JPOS and not really familiar with Java, but I have
We can tell :-)
> experienced building iso-8583 applications with delphi
Ok, so in ISO8583 terms, you need to use the right field types to get
the right result.
Just pick your Packager wisely and all the 'hard' work is done for you.
--
Mark
Unless you are not the OP, in which case...
I there are tests for BCDInterpreter in :-
jpos/src/test/java/org/jpos/iso/BCD*
and I evolved some test for BCD* from Ascii* *before I realised that my
local copy was very outdated.
BCDInterpreter inter = BCDInterpreter.LEFT_PADDED_F; // Pick type
byte[] b = new byte[3]; // somewhere for the result
inter.interpret("12345", b, 0); // convert
b holds x'F12345'
--
Mark