org.gvsig.tools.persistence.xml
Class ZipXMLPersistenceManager
java.lang.Object
org.gvsig.tools.persistence.impl.AbstractPersistenceManager
org.gvsig.tools.persistence.xml.XMLPersistenceManager
org.gvsig.tools.persistence.xml.ZipXMLPersistenceManager
- All Implemented Interfaces:
- PersistenceManager, PersistenceManagerServices
public class ZipXMLPersistenceManager
- extends XMLPersistenceManager
- Author:
- jmvivo
Methods inherited from class org.gvsig.tools.persistence.impl.AbstractPersistenceManager |
addAlias, addDefinition, addDefinition, addDefinition, addDefinition, addDefinition, create, createPersistentState, createState, getAutoValidation, getDefinition, getDefinition, getDomainDefinitions, getDomains, getDynObjectDefinition, getFactories, getNewContext, getObject, getState, getState, getWrappedList, getWrappedMap, getWrappedSet, putObject, registerFactory, setAutoValidation, unregisterClass, unregisterClass, unregisterFactory, validate, validateAll |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipXMLPersistenceManager
public ZipXMLPersistenceManager()
loadState
public PersistentState loadState(InputStream in)
throws PersistenceException
- Description copied from interface:
PersistenceManager
De-serializes an state from the data read from the provided
reader
. Depending on the implementation the serialized data
may have different formats, such as XML or binary data.
Note that a particular implementation will only be able to de-serialize
data which has been serialized by the same implementation.
- Specified by:
loadState
in interface PersistenceManager
- Overrides:
loadState
in class XMLPersistenceManager
- Returns:
-
- Throws:
PersistenceException
saveState
public void saveState(PersistentState state,
OutputStream out)
throws PersistenceException,
PersistenceValidateExceptions
- Description copied from interface:
PersistenceManager
Serializes the PersistentState
and writes the serialized data in
the provided OutputStream
. Depending on the implementation the
serialized data may have different formats, such as XML or binary data.
Note that a particular implementation will only be able to de-serialize
data which has been serialized by the same implementation.
- Specified by:
saveState
in interface PersistenceManager
- Overrides:
saveState
in class XMLPersistenceManager
- Throws:
PersistenceValidateExceptions
PersistenceException
Copyright © 2004-2011 gvSIG. All Rights Reserved.