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