示例#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);
 }
示例#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);
   }
 }
示例#3
0
 public void unpack(InputStream in) throws IOException, ISOException {
   synchronized (this) {
     packager.unpack(this, in);
   }
 }
示例#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);
   }
 }