コード例 #1
0
ファイル: DiscoveryRequest.java プロジェクト: ktg/ect
 /* used by Object(In|Out)putStream only */
 public void writeObject(ObjectOutputStream out) throws java.io.IOException {
   out.writeObjectStart();
   out.writeShort(port);
   out.writeInt(serviceTypes.length);
   int i1;
   for (i1 = 0; i1 < serviceTypes.length; i1++) {
     out.writeString(serviceTypes[i1]);
   }
   out.writeInt(groups.length);
   for (i1 = 0; i1 < groups.length; i1++) {
     out.writeString(groups[i1]);
   }
   out.writeInt(heard.length);
   for (i1 = 0; i1 < heard.length; i1++) {
     out.writeString(heard[i1]);
   }
   out.writeObjectEnd();
 }
コード例 #2
0
ファイル: UpdateEvent.java プロジェクト: ktg/ect
 /**
  * Internal IDL-generated serialisation helper. Used by {@link equip.runtime.ObjectInputStream}
  * and {@link equip.runtime.ObjectOutputStream} only.
  */
 public void writeObject(ObjectOutputStream out) throws java.io.IOException {
   super.writeObject(out);
   out.writeObjectStart();
   out.writeObject(item);
   out.writeObjectEnd();
 }