Class XMLPersister
java.lang.Object
org.flexdock.perspective.persist.xml.XMLPersister
- All Implemented Interfaces:
Persister
Created on 2005-06-03
- Version:
- $Id: XMLPersister.java,v 1.23 2006-12-20 20:55:21 kschaefe Exp $
- Author:
- Mateusz Szczap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionload(InputStream is) DeserializesPerspectiveInfofrom the supplied data stream.static XMLPersisterbooleanstore(OutputStream os, PerspectiveModel perspectiveModel) SerializesPerspectiveInfoto the supplied data stream.
-
Constructor Details
-
XMLPersister
public XMLPersister()
-
-
Method Details
-
store
public boolean store(OutputStream os, PerspectiveModel perspectiveModel) throws IOException, PersistenceException SerializesPerspectiveInfoto the supplied data stream.- Specified by:
storein interfacePersister- Parameters:
os-OutputStreamto persist perspectiveInfo to.perspectiveModel- data object to be persisted- Returns:
truewhen there was no problem with persisting the perspectiveInfo object.- Throws:
IOException- in case of input/output problem.PersistenceException
-
load
DeserializesPerspectiveInfofrom the supplied data stream.- Specified by:
loadin interfacePersister- Parameters:
is-InputStreamto load perspectiveInfo from.- Returns:
truewhen there was no problem with persisting the perspectiveInfo object.- Throws:
IOException- in case of input/output problem.PersistenceException
-
newDefaultInstance
-