Search in sources :

Example 11 with ISOTaggedField

use of org.jpos.tlv.ISOTaggedField in project jPOS by jpos.

the class IFTA_LLLNUM method unpackTag.

protected int unpackTag(ISOComponent c, byte[] tagBytes, int offset) throws ISOException {
    ISOField tagField = new ISOField((Integer) c.getKey());
    int consumed = getTagPackager().unpack(tagField, tagBytes, offset);
    ((ISOTaggedField) c).setTag(tagField.getValue().toString());
    return consumed;
}
Also used : ISOField(org.jpos.iso.ISOField) ISOTaggedField(org.jpos.tlv.ISOTaggedField)

Example 12 with ISOTaggedField

use of org.jpos.tlv.ISOTaggedField in project jPOS by jpos.

the class IFTA_LLLNUM method unpackTag.

protected void unpackTag(ISOComponent c, InputStream in) throws ISOException, IOException {
    ISOField tagField = new ISOField((Integer) c.getKey());
    getTagPackager().unpack(tagField, in);
    ((ISOTaggedField) c).setTag(tagField.getValue().toString());
}
Also used : ISOField(org.jpos.iso.ISOField) ISOTaggedField(org.jpos.tlv.ISOTaggedField)

Example 13 with ISOTaggedField

use of org.jpos.tlv.ISOTaggedField in project jPOS by jpos.

the class IFTA_LLNUM method unpackTag.

protected void unpackTag(ISOComponent c, InputStream in) throws ISOException, IOException {
    ISOField tagField = new ISOField((Integer) c.getKey());
    getTagPackager().unpack(tagField, in);
    ((ISOTaggedField) c).setTag(tagField.getValue().toString());
}
Also used : ISOField(org.jpos.iso.ISOField) ISOTaggedField(org.jpos.tlv.ISOTaggedField)

Example 14 with ISOTaggedField

use of org.jpos.tlv.ISOTaggedField in project jPOS by jpos.

the class IFTB_LLBINARY method unpackTag.

protected int unpackTag(ISOComponent c, byte[] tagBytes, int offset) throws ISOException {
    ISOField tagField = new ISOField((Integer) c.getKey());
    int consumed = getTagPackager().unpack(tagField, tagBytes, offset);
    ((ISOTaggedField) c).setTag(tagField.getValue().toString());
    return consumed;
}
Also used : ISOField(org.jpos.iso.ISOField) ISOTaggedField(org.jpos.tlv.ISOTaggedField)

Example 15 with ISOTaggedField

use of org.jpos.tlv.ISOTaggedField in project jPOS by jpos.

the class IFTB_LLBINARY method unpackTag.

protected void unpackTag(ISOComponent c, InputStream in) throws ISOException, IOException {
    ISOField tagField = new ISOField((Integer) c.getKey());
    getTagPackager().unpack(tagField, in);
    ((ISOTaggedField) c).setTag(tagField.getValue().toString());
}
Also used : ISOField(org.jpos.iso.ISOField) ISOTaggedField(org.jpos.tlv.ISOTaggedField)

Aggregations

ISOTaggedField (org.jpos.tlv.ISOTaggedField)18 ISOField (org.jpos.iso.ISOField)15 IOException (java.io.IOException)4 ISOException (org.jpos.iso.ISOException)4 LogEvent (org.jpos.util.LogEvent)4 ISOComponent (org.jpos.iso.ISOComponent)3 ISOFieldPackager (org.jpos.iso.ISOFieldPackager)3 ArrayList (java.util.ArrayList)2 Map (java.util.Map)2 ConfigurationException (org.jpos.core.ConfigurationException)2 UnknownTagNumberException (org.jpos.emv.UnknownTagNumberException)2 Iterator (java.util.Iterator)1 TreeMap (java.util.TreeMap)1 OffsetIndexedComposite (org.jpos.tlv.OffsetIndexedComposite)1