Search in sources :

Example 41 with ISOField

use of org.jpos.iso.ISOField 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 42 with ISOField

use of org.jpos.iso.ISOField 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)

Example 43 with ISOField

use of org.jpos.iso.ISOField 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 44 with ISOField

use of org.jpos.iso.ISOField 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 45 with ISOField

use of org.jpos.iso.ISOField 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)

Aggregations

ISOField (org.jpos.iso.ISOField)50 Test (org.junit.Test)18 ISOException (org.jpos.iso.ISOException)15 ISOTaggedField (org.jpos.tlv.ISOTaggedField)15 IFB_LLNUM (org.jpos.iso.IFB_LLNUM)6 IFE_LLNUM (org.jpos.iso.IFE_LLNUM)6 ISOMsg (org.jpos.iso.ISOMsg)6 ISOMultiFieldPackager (org.jpos.iso.packager.ISOMultiFieldPackager)6 ISOComponent (org.jpos.iso.ISOComponent)5 ISOFieldPackager (org.jpos.iso.ISOFieldPackager)5 ISOVField (org.jpos.iso.ISOVField)5 Vector (java.util.Vector)4 FileInputStream (java.io.FileInputStream)3 Map (java.util.Map)3 ISOBinaryField (org.jpos.iso.ISOBinaryField)3 ByteBuffer (java.nio.ByteBuffer)2 ISOVError (org.jpos.iso.ISOVError)2 GenericPackager (org.jpos.iso.packager.GenericPackager)2 GenericTagSequence (org.jpos.tlv.GenericTagSequence)2 LiteralTagValue (org.jpos.tlv.LiteralTagValue)2