F104 Dynamic Length

33 views
Skip to first unread message

Ankur Yadav

unread,
Jan 6, 2023, 3:55:10 PM1/6/23
to jPOS Users
We have a requirement that F104 length can be 1 byte or 2 byte. while packaging/unpackaging, on the basis of first two digit, we can figure out the length of F104. BinaryPrefixer class in jpos library able to calculate the length of this field.
Please suggest some solutions.

For 1 byte length, it's definition will be:
<isofield
id="104"
length="255"
name="TRANSACTION DESCRIPTION"
class="org.jpos.iso.IFB_LLHBINARY"/>
<isofield 

for 2 byte length, it's definition will be:
<isofield
id="104"
length="1600"
name="TRANSACTION DESCRIPTION"
class="org.jpos.iso.IFB_LLLHBINARY"/>
<isofield 

murtuza chhil

unread,
Jan 8, 2023, 7:32:27 PM1/8/23
to jPOS Users
See if you can extend your channel to extend BaseChannel's getDynamicPackager
Reply all
Reply to author
Forward
0 new messages