ISOUtil.str2bcd("41344D3039303030", false) which results in A4M09000 being changed to A4T09000.
I would think for flexibility we may want to use hex2byte (pad the string appropriately prior to the call) instead of str2Bcd.
-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/dcefe727-89a3-4133-b9e3-229336b55acbn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/bdd3c9c4-f758-4cad-9128-c1287d869ed5n%40googlegroups.com.
import org.jpos.iso.ISOUtil;
import org.jpos.iso.channel.NACChannel;
public class MyChannel extends NACChannel {
public void setHeader (String header) {
super.setHeader (ISOUtil.hex2byte(header));
}
}
Configure your deploy file to use MyChannel. (Its not tested but it should work for sending messages).
-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 a topic in the Google Groups "jPOS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jpos-users/bT8osYnhtyg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/00448e7e-508a-4ba2-8d20-b8a670236bc6n%40googlegroups.com.