I have this string from the Field 54 of an ISO message:
1002566C0000000000001004566C0000000000001001566C000000000000
It is divided into sections/data elements as shown below based on the definition from the PostBridge Interface Specification:
Information on up to 6 amounts and related account data for which specific data elements have not been defined. Each amount is a fixed length field consisting of 5 data elements:
- Account type (positions 1 - 2)
- Amount type (positions 3 - 4)
- Currency code (positions 5 - 7)
- Amount sign (position 8) - "C" or "D"
- Amount (position 9 - 20)
10
02
566
C
000000000000
10
04
566
C
000000000000
10
01
566
C
000000000000
Is there a simple way to parse this String with JPos using something like the TLVList
or some other class? Or do I have to create a custom implementation to parse this value myself.