protected void writeFields(
     final ConcreteClass instance, final ObjectOutputStream objectOutputStream) {
   objectOutputStream.writeInt(instance.value);
 }
示例#2
0
 protected void writeDate(final Date date, ObjectOutputStream objectOutputStream) {
   objectOutputStream.writeLong(date.getTime());
 }