G
GG
Hi all,
How would one force a deep reserialization for a collection whose
reference
is already known to be serialized by ObjectOutputStream (without using
custom
mechanisms, of course; in that case there's no question, is there?).
For example, I am trying to serialize a large number (hundreds of
thousands) of rows of a database, that I store as a List. Now, if I do
..clear() and try to serialize again, I would get the same result back
as the first thing I serialized. But if I create a "new" object every
time, I run out of memory pretty fast. Is there a standard way, or
should I roll my own solution?
How would one force a deep reserialization for a collection whose
reference
is already known to be serialized by ObjectOutputStream (without using
custom
mechanisms, of course; in that case there's no question, is there?).
For example, I am trying to serialize a large number (hundreds of
thousands) of rows of a database, that I store as a List. Now, if I do
..clear() and try to serialize again, I would get the same result back
as the first thing I serialized. But if I create a "new" object every
time, I run out of memory pretty fast. Is there a standard way, or
should I roll my own solution?