Skip to content

Instantly share code, notes, and snippets.

@ar
Created December 28, 2020 00:40
Show Gist options
  • Save ar/ef7b5e1e8819a47c28e5624a8cf08a96 to your computer and use it in GitHub Desktop.
Save ar/ef7b5e1e8819a47c28e5624a8cf08a96 to your computer and use it in GitHub Desktop.
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS org.jpos:jpos:2.1.5
//
import org.jpos.iso.*;
import org.jpos.space.*;
import org.jpos.iso.packager.*;
class isomsg {
public static void main(String... args) throws Exception {
ISOMsg m = new ISOMsg("2800");
ISOPackager p = new GenericPackager("jar:packager/cmf.xml");
m.set (11, "000001");
m.set (70, "001");
m.dump (System.out, "");
m.setPackager(p);
System.out.println (ISOUtil.hexdump (m.pack()));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment