@Test public void testUnpack() throws Exception { byte[] raw = new byte[]{0x30, 0x34, 0x01, 0x23}; IFA_LLBNUM packager = new IFA_LLBNUM(10, "Should be 0x30330123", true); ISOField field = new ISOField(); packager.unpack(field, raw, 0); assertEquals("0123", field.getValue()); }
public int unpack (ISOComponent c, byte[] b, int offset) throws ISOException { int len = prefixer.decodeLength(b, offset); c.setValue (interpreter.uninterpret(b, offset + 2, len)); return 2 + (++len >> 1); }
IFA_LLBNUM extends ISOFieldPackager { public int unpack (ISOComponent c, byte[] b, int offset) throws ISOException { int len = prefixer.decodeLength(b, offset); c.setValue (interpreter.uninterpret(b, offset + 2, len)); return 2 + (++len >> 1); } }
IFA_LLBNUM extends ISOFieldPackager { public int unpack (ISOComponent c, byte[] b, int offset) throws ISOException { int len = prefixer.decodeLength(b, offset); c.setValue (interpreter.uninterpret(b, offset + 2, len)); return 2 + (++len >> 1); } IFA_LLBNUM();  IFA_LLBNUM(int len, String description, boolean pad); }
IFA_LLBNUM extends ISOFieldPackager { public int unpack (ISOComponent c, byte[] b, int offset) throws ISOException { int len = prefixer.decodeLength(b, offset); c.setValue (interpreter.uninterpret(b, offset + 2, len)); return 2 + (++len >> 1); } IFA_LLBNUM();  IFA_LLBNUM(int len, String description, boolean pad); void setPad(boolean pad); byte[] pack(ISOComponent c); int unpack(ISOComponent c, byte[] b, int offset); void unpack(ISOComponent c, InputStream in); int getMaxPackedLength(); }
IFA_LLBNUM extends ISOFieldPackager { public int unpack (ISOComponent c, byte[] b, int offset) throws ISOException { int len = prefixer.decodeLength(b, offset); c.setValue (interpreter.uninterpret(b, offset + 2, len)); return 2 + (++len >> 1); } IFA_LLBNUM();  IFA_LLBNUM(int len, String description, boolean pad); void setPad(boolean pad); byte[] pack(ISOComponent c); int unpack(ISOComponent c, byte[] b, int offset); void unpack(ISOComponent c, InputStream in); int getMaxPackedLength();  }