Package org.flexdock.perspective.persist
Class DefaultFilePersister
java.lang.Object
org.flexdock.perspective.persist.DefaultFilePersister
- All Implemented Interfaces:
Persister
- Author:
- Christopher Butler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionload(InputStream in) DeserializesPerspectiveInfofrom the supplied data stream.booleanstore(OutputStream out, PerspectiveModel info) SerializesPerspectiveInfoto the supplied data stream.
-
Constructor Details
-
DefaultFilePersister
public DefaultFilePersister()
-
-
Method Details
-
load
Description copied from interface:PersisterDeserializesPerspectiveInfofrom the supplied data stream.- Specified by:
loadin interfacePersister- Parameters:
in-InputStreamto load perspectiveInfo from.- Returns:
truewhen there was no problem with persisting the perspectiveInfo object.- Throws:
IOException- in case of input/output problem.PersistenceException
-
store
Description copied from interface:PersisterSerializesPerspectiveInfoto the supplied data stream.- Specified by:
storein interfacePersister- Parameters:
out-OutputStreamto persist perspectiveInfo to.info- data object to be persisted- Returns:
truewhen there was no problem with persisting the perspectiveInfo object.- Throws:
IOException- in case of input/output problem.
-