Created
December 28, 2020 00:40
-
-
Save ar/ef7b5e1e8819a47c28e5624a8cf08a96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///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