chochos
5c4259eba3
Added a new property, characterEncoding, to MessageFactory, IsoMessage, FieldParseInfo and IsoValue. This helps in parsing messages from byte buffers containing extended characters in encodings other than the default for the JVM. Tested with UTF8 on a Mac (which has default Mac OS Roman) and worked fine.
...
Several methods now have an additional encoding parameter (just a String, not directly a Charset), but the default is always the JVM's default encoding (taken from the property 'file.encoding').
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@70 db60a039-f72e-0410-b1d2-baa000846441
2011-03-21 23:22:58 +00:00
chochos
c7d696acc7
Simplified some of the formatting routines in IsoType, using String.format(). Added unit tests to check that the new formatting code works fine.
...
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@69 db60a039-f72e-0410-b1d2-baa000846441
2011-02-22 02:15:38 +00:00
chochos
3b36a1dfe9
binary message parsing has improved drastically. BINARY, LLBIN and LLLBIN types are correctly encoded and parsed in both ASCII and binary formats.
...
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@65 db60a039-f72e-0410-b1d2-baa000846441
2010-12-07 19:24:52 +00:00
chochos
ad4f51d3cd
Added unit tests for binaries (in progress). Added BINARY, LLBIN and LLLBIN to the DTD. Added a message template and a parsing template to the test config.
...
Fixed some problems with the stored values in IsoValues.
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@64 db60a039-f72e-0410-b1d2-baa000846441
2010-12-07 17:14:04 +00:00
chochos
3c8cacbb8d
Added new IsoTypes: BINARY, LLBIN and LLLBIN. Similar to ALPHA, LLVAR and LLLVAR but they handle binary values that get translated to byte arrays, directly if using binary coding, or hex-encoded if using ASCII.
...
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@63 db60a039-f72e-0410-b1d2-baa000846441
2010-12-06 18:42:02 +00:00
chochos
2a7d4063e2
Fixed missing stuff from CustomField48 (comparison, encoding). TestIsoMessage runs fine now.
...
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@55 db60a039-f72e-0410-b1d2-baa000846441
2010-11-26 16:47:38 +00:00
chochos
cd300d0b28
Unit tests must be called "Test*.java" to be found by surefire.
...
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@54 db60a039-f72e-0410-b1d2-baa000846441
2010-11-26 01:34:07 +00:00
chochos
2a5feee7a1
Added some simple unit tests.
...
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@53 db60a039-f72e-0410-b1d2-baa000846441
2010-11-26 01:12:39 +00:00