@Override public Object getKey() throws ISOException { return delegate.getKey(); }
/** * Create a nice readable message for errors */ private String makeExceptionMessage(ISOComponent c, String operation) { Object fieldKey = "unknown"; if (c != null) try{ fieldKey = c.getKey(); } catch (Exception ignore){} return this.getClass().getName() + ": Problem " + operation + " field " + fieldKey; }
/** * Create a nice readable message for errors */ private String makeExceptionMessage(ISOComponent c, String operation) { Object fieldKey = "unknown"; if (c != null) try{ fieldKey = c.getKey(); } catch (Exception ignore){} return this.getClass().getName() + ": Problem " + operation + " field " + fieldKey; }
/** * @param c - the Component to unpack * @param b - binary image * @param offset - starting offset within the binary image * @return consumed bytes */ public int unpack (ISOComponent c, byte[] b, int offset) throws ISOException { throw new ISOException("IF_UNUSED: Packager should not unpack field " + c.getKey()); } public int getMaxPackedLength() {
/** * @param c - a component * @return packed component * @exception ISOException */ public byte[] pack (ISOComponent c) throws ISOException { throw new ISOException("IF_UNUSED: Packager should not pack field " + c.getKey()); } /**
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; }
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()); }
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()); }
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; }
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()); }
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; }
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()); }
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; }
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()); }
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; }
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()); }
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; }
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()); }
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; }
protected byte[] packTag(ISOComponent c) throws ISOException { return getTagPackager().pack(new ISOField((Integer) c.getKey(), ((ISOTaggedField) c).getTag())); }