Package org.flexdock.perspective.persist
Interface Persister
-
- All Known Implementing Classes:
DefaultFilePersister,XMLPersister
public interface PersisterCreated on 2005-03-30- Version:
- $Id: Persister.java,v 1.7 2005-07-05 14:53:26 marius Exp $
- Author:
- Christopher Butler, Mateusz Szczap
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PerspectiveModelload(java.io.InputStream is)DeserializesPerspectiveInfofrom the supplied data stream.booleanstore(java.io.OutputStream os, PerspectiveModel perspectiveInfo)SerializesPerspectiveInfoto the supplied data stream.
-
-
-
Method Detail
-
store
boolean store(java.io.OutputStream os, PerspectiveModel perspectiveInfo) throws java.io.IOException, PersistenceExceptionSerializesPerspectiveInfoto the supplied data stream.- Parameters:
os-OutputStreamto persist perspectiveInfo to.perspectiveInfo- data object to be persisted- Returns:
truewhen there was no problem with persisting the perspectiveInfo object.- Throws:
java.io.IOException- in case of input/output problem.PersistenceException
-
load
PerspectiveModel load(java.io.InputStream is) throws java.io.IOException, PersistenceException
DeserializesPerspectiveInfofrom the supplied data stream.- Parameters:
is-InputStreamto load perspectiveInfo from.- Returns:
truewhen there was no problem with persisting the perspectiveInfo object.- Throws:
java.io.IOException- in case of input/output problem.PersistenceException
-
-