protected void writePackager(ObjectOutput out) throws IOException { out.writeByte('P'); String pclass = packager.getClass().getName(); byte[] b = pclass.getBytes(); out.writeShort(b.length); out.write(b); }
/** * unpack a message * * @param b - raw message * @return consumed bytes * @exception ISOException */ public int unpack(byte[] b) throws ISOException { synchronized (this) { return packager.unpack(this, b); } }
public void unpack(InputStream in) throws IOException, ISOException { synchronized (this) { packager.unpack(this, in); } }
/** * pack the message with the current packager * * @return the packed message * @exception ISOException */ public byte[] pack() throws ISOException { synchronized (this) { recalcBitMap(); return packager.pack(this); } }