String hexMesage = "F1F2F0F05000000000000000F1F0F1F2F3F4F5F6F7F8F9F0F0F0F0F0F0F0F0F0F1F0F0F0";
GenericPackager pkgr = new GenericPackager("path to your xml defined packager");
ISOMsg message = new ISOMsg("1200");
message.setPackager(pkgr);
message.unpack(ISOUtil.hex2byte(hexMesage));
ByteArrayOutputStream baos = new ByteArrayOutputStream();
// Create a PrintStream that writes to the ByteArrayOutputStream
PrintStream ps = new PrintStream(baos);
message.dump(ps, "");
System.out.println(baos.toString());
Output
<isomsg direction="none">
<!-- org.jpos.iso.packager.GenericPackager[path to your xml defined packager] -->
<field id="bitmap" value="{2, 4}" type="bitmap"/>
<field id="0" value="1200"/>
<field id="2" value="1234567890"/>
<field id="4" value="000000001000"/>
</isomsg>
-chhil
--
--
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 Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/f7410b40-64f3-4faa-bf72-b3db70e57c66n%40googlegroups.com.