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());
 }