Example #1
0
 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);
 }
Example #2
0
 /**
  * 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);
   }
 }
Example #3
0
 public void unpack(InputStream in) throws IOException, ISOException {
   synchronized (this) {
     packager.unpack(this, in);
   }
 }
Example #4
0
 /**
  * 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);
   }
 }