Friday, August 22, 2003 02:05 PM
"Iterator" is an interface, not a class..... so I think you would need to serialize and de-serialize based on the underlying implementation class, right?
Also in the Javadoc there is a warning, under the "remove()" method:
The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method
(would serializing and deserializing count as "modified", per this warning? could the underlying thing be re-ordered, shuffled, compacted, etc. possibly?)