Пример #1
0
  /** writeObject is called to save the state of the {@code BatchUpdateException} to a stream. */
  private void writeObject(ObjectOutputStream s) throws IOException, ClassNotFoundException {

    ObjectOutputStream.PutField fields = s.putFields();
    fields.put("updateCounts", updateCounts);
    fields.put("longUpdateCounts", longUpdateCounts);
    s.writeFields();
  }
Пример #2
0
 /**
  * Save the state of the {@code Vector} instance to a stream (that is, serialize it). This method
  * performs synchronization to ensure the consistency of the serialized data.
  */
 private void writeObject(j86.java.io.ObjectOutputStream s) throws j86.java.io.IOException {
   final j86.java.io.ObjectOutputStream.PutField fields = s.putFields();
   final Object[] data;
   synchronized (this) {
     fields.put("capacityIncrement", capacityIncrement);
     fields.put("elementCount", elementCount);
     data = elementData.clone();
   }
   fields.put("elementData", data);
   s.writeFields();
 }