예제 #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);
   }
 }