org.ximtec.igesture.storage
Class XMLStorageEngine
java.lang.Object
org.ximtec.igesture.storage.DefaultStorageEngine
org.ximtec.igesture.storage.DefaultFileStorageEngine
org.ximtec.igesture.storage.XMLStorageEngine
- All Implemented Interfaces:
- StorageEngine
public class XMLStorageEngine
- extends DefaultFileStorageEngine
XML storage engine implementation.
- Version:
- 1.0, Dec 2006
- Author:
- Ueli Kurmann, igesture@uelikurmann.ch, Beat Signer, signer@inf.ethz.ch
| Methods inherited from class org.ximtec.igesture.storage.DefaultFileStorageEngine |
commit, dispose, getStorageFile, isDoChanged, load, load, remove, removeDataObject, setDoChanged, setStorageFile, store, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLStorageEngine
public XMLStorageEngine(String filename)
- Create the XML Storage Engine
- Parameters:
filename -
serialize
protected void serialize(HashMap<Class<? extends DataObject>,List<DataObject>> objects,
File file)
- Serialize the internal data structure to an XML file.
- Specified by:
serialize in class DefaultFileStorageEngine
deserialize
protected HashMap<Class<? extends DataObject>,List<DataObject>> deserialize(File file)
- Deserialise an XML file.
- Specified by:
deserialize in class DefaultFileStorageEngine
- Parameters:
file - the file to be deserialised.
- Returns:
- the internal data structure handling the data objects.
copyTo
public void copyTo(File file)
Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.