コード例 #1
0
 public void writeExternal(ObjectOutput out) throws IOException {
   super.writeExternal(out);
   out.writeLong(initRange);
   out.writeLong(finalRange);
   out.writeObject(paramText);
   out.writeBoolean(unwrapLeft);
   out.writeBoolean(unwrapRight);
 }
コード例 #2
0
 public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
   super.readExternal(in);
   initRange = in.readLong();
   finalRange = in.readLong();
   paramText = (String) in.readObject();
   unwrapLeft = in.readBoolean();
   unwrapRight = in.readBoolean();
 }