Search in sources :

Example 6 with ISOTaggedField

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

the class IFTA_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 7 with ISOTaggedField

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

the class IFTA_LLCHAR 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 8 with ISOTaggedField

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

the class IFTA_LLCHAR 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 9 with ISOTaggedField

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

the class IFTA_LLLBINARY 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 10 with ISOTaggedField

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

the class IFTA_LLLCHAR 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)

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