Commit Graph
28 Commits
Author SHA1 Message Date
Enrique Zamudio 188fcf5f3f store binary ISO header #60 2016-07-01 09:00:31 -05:00
Enrique Zamudio 3123eb4ea9 fix #40 2015-05-03 11:27:17 -05:00
Enrique Zamudio 00c046881b fix #36 LLLLVAR + LLLLBIN 2015-02-19 19:40:03 -06:00
Enrique Zamudio 34c19e26ec fix doc for #29 2014-12-04 10:57:43 -06:00
Enrique Zamudio e74fb1b51c new Java 7 features #32 2014-11-28 12:50:09 -06:00
Enrique Zamudio eb1c0437d4 fix #27 2014-11-28 12:15:55 -06:00
Enrique Zamudio 61fded16d2 Fix debugString for variable-length fields 2013-06-25 12:37:41 -05:00
Enrique Zamudio a543212d1e debugString uses substrings for bitmap hex chars 2013-06-12 13:10:35 -05:00
Enrique Zamudio 078eeb6ee5 Add debugString() method 2013-06-12 10:42:09 -05:00
Enrique Zamudio 1ce67c621c Encode text bitmap in EBCDIC with forceStringEncoding=true #13 2013-05-13 23:13:44 -05:00
Enrique Zamudio 2e521c2b6d Implement #13 2013-05-13 18:54:44 -05:00
Enrique Zamudio 4a1f165c0b improve use of generics 2013-05-07 12:30:33 -05:00
Enrique Zamudio e91a272f73 Fix #7 - add new setter that only updates existing values 2013-04-23 10:50:32 -05:00
Enrique Zamudio 8dd759f92f Fix #8 - change parsing maps visibility to protected 2013-04-23 10:30:00 -05:00
Enrique Zamudio a3a7b53fa0 write length header directly to ByteBuffer 2013-01-18 12:04:17 -06:00
Enrique Zamudio dfb1bc1b45 Handle binary bitmaps in text-encoded messages (thanks @dhinckle2)
also catch a bug in LLVAR encoding
2012-11-30 11:53:08 -06:00
seanjburns 3feb4a7704 Very simple change to allow the factory to create other implementations of IsoMessage 2012-11-27 23:04:59 +02:00
chochos da6bb2bb23 Doc says if field is missing ignore it, but it was being removed from destination message.
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@103 db60a039-f72e-0410-b1d2-baa000846441
2012-05-18 15:28:06 +00:00
chochos 56445e8f33 Add generics in a couple of places where they were missing, as well as a @SuppressWarnings
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@97 db60a039-f72e-0410-b1d2-baa000846441
2011-09-26 20:48:33 +00:00
chochos 8c4d1cc48c Several methods for setting values in an IsoMessage now return the message itself instead of void. This is useful
for chaining several method calls and setting several fields in sequence. Also there is a new method setFields which
receives a Map; it can be useful in languages with syntax for easily creating maps.


git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@96 db60a039-f72e-0410-b1d2-baa000846441
2011-09-21 22:31:28 +00:00
chochos 13e60ee567 Finish improvement of generics usage, modifiying a couple of methods in MessageFactory (for accessing CustomField encoders) and ConfigParser (for using said CustomFields)
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@92 db60a039-f72e-0410-b1d2-baa000846441
2011-08-11 15:35:42 +00:00
chochos 9f5a7d59af Improved the generics usage in methods returning IsoValues (and getObjectValue() as well).
Now you can do stuff like this:
IsoValue<Date> v = message.getField(7);
BigDecimal amount = message.getObjectValue(4);
No need to cast. Having generified IsoValue is now useful.


git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@91 db60a039-f72e-0410-b1d2-baa000846441
2011-08-11 15:27:49 +00:00
chochos 7efa01f459 IsoMessage has some Scala interop, you can use from Scala stuff like m(4) to get IsoValue at field 4, and also set it m(4)=IsoValue.DATE10.call(new Date())
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@89 db60a039-f72e-0410-b1d2-baa000846441
2011-08-09 01:42:16 +00:00
chochos a8c2aecd3e Validate that there is indeed a field to set the encoding to, in the IsoMessage. Update version to 1.5.1
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@72 db60a039-f72e-0410-b1d2-baa000846441
2011-04-08 16:21:58 +00:00
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 2c501c3f43 The new copyFieldsFrom() method had problems with fields that had CustomField encoders. A getter has been added to IsoValue for the CustomField and it's used in the copyFieldsFrom() method.
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@58 db60a039-f72e-0410-b1d2-baa000846441
2010-11-30 02:29:37 +00:00
chochos b1e09634d6 Made several changes that result in considerable performance improvements:
- Fields inside the IsoMessage are now stored in an IsoValue[] instead of a map (this avoids the sorting step when encoding)
- The constructor IsoValue(IsoType, T, int, CustomField) for LLVAR and LLLVAR types uses the received length parameter instead of reencoding the value with the CustomField; this results in much faster parsing performance.
- FieldParseInfo passes the length of LLVAR and LLLVAR fields to the IsoValue constructor so that reencoding the value (or getting the length of the string) is not necessary. Field header length is checked to be digits when parsing ASCII.
- IsoType now parses AMOUNT values as BigDecimals.
- MessageFactory has separate code for parsing binary and ASCII messages.

Also, the DTD was moved to the resources directory.


git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@56 db60a039-f72e-0410-b1d2-baa000846441
2010-11-29 19:27:25 +00:00
chochos 1b07cf9a32 This is the mavenized version of the project, and it's the one I'll be working with from now on.
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@52 db60a039-f72e-0410-b1d2-baa000846441
2010-11-26 00:30:40 +00:00