B
bsd_mike
I have a static integer value in a class that I am trying to serialize.
We have our own writeObject what writes the integer out each time the
object is written.
This works.
However, I would like to only write the integer out once.
I can detect when I am on the last object during a write, but can't
during a read...
except through readResolve.
Would it work to call readObject from readResolve to get that integer?
Other ideas?
-MIke
We have our own writeObject what writes the integer out each time the
object is written.
This works.
However, I would like to only write the integer out once.
I can detect when I am on the last object during a write, but can't
during a read...
except through readResolve.
Would it work to call readObject from readResolve to get that integer?
Other ideas?
-MIke