com.sun.org.apache.xml.internal.utils
public class: SerializableLocatorImpl [javadoc |
source]
java.lang.Object
com.sun.org.apache.xml.internal.utils.SerializableLocatorImpl
All Implemented Interfaces:
Locator, Serializable
The standard SAX implementation of LocatorImpl is not serializable,
limiting its utility as "a persistent snapshot of a locator".
This is a quick hack to make it so. Note that it makes more sense
in many cases to set up fields to hold this data rather than pointing
at another object... but that decision should be made on architectural
grounds rather than serializability.
It isn't clear whether subclassing LocatorImpl and adding serialization
methods makes more sense than copying it and just adding Serializable
to its interface. Since it's so simple, I've taken the latter approach
for now.