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) DeserializesPerspectiveInfo
from the supplied data stream.boolean
store
(OutputStream out, PerspectiveModel info) SerializesPerspectiveInfo
to the supplied data stream.
-
Constructor Details
-
DefaultFilePersister
public DefaultFilePersister()
-
-
Method Details
-
load
Description copied from interface:Persister
DeserializesPerspectiveInfo
from the supplied data stream.- Specified by:
load
in interfacePersister
- Parameters:
in
-InputStream
to load perspectiveInfo from.- Returns:
true
when there was no problem with persisting the perspectiveInfo object.- Throws:
IOException
- in case of input/output problem.PersistenceException
-
store
Description copied from interface:Persister
SerializesPerspectiveInfo
to the supplied data stream.- Specified by:
store
in interfacePersister
- Parameters:
out
-OutputStream
to persist perspectiveInfo to.info
- data object to be persisted- Returns:
true
when there was no problem with persisting the perspectiveInfo object.- Throws:
IOException
- in case of input/output problem.
-