コード例 #1
0
  public static void serialize(
      SerializationStreamWriter streamWriter, edu.pdx.cs410J.mwk2.client.PhoneBill instance)
      throws SerializationException {
    streamWriter.writeString(getCustomer(instance));
    streamWriter.writeObject(getPhoneCalls(instance));

    edu.pdx.cs410J.AbstractPhoneBill_FieldSerializer.serialize(streamWriter, instance);
  }
コード例 #2
0
  public static void deserialize(
      SerializationStreamReader streamReader, edu.pdx.cs410J.mwk2.client.PhoneBill instance)
      throws SerializationException {
    setCustomer(instance, streamReader.readString());
    setPhoneCalls(instance, (java.util.ArrayList) streamReader.readObject());

    edu.pdx.cs410J.AbstractPhoneBill_FieldSerializer.deserialize(streamReader, instance);
  }