Package org.flexdock.perspective.persist
Class DefaultFilePersister
- java.lang.Object
-
- org.flexdock.perspective.persist.DefaultFilePersister
-
-
Constructor Summary
Constructors Constructor Description DefaultFilePersister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PerspectiveModel
load(java.io.InputStream in)
DeserializesPerspectiveInfo
from the supplied data stream.boolean
store(java.io.OutputStream out, PerspectiveModel info)
SerializesPerspectiveInfo
to the supplied data stream.
-
-
-
Method Detail
-
load
public PerspectiveModel load(java.io.InputStream in) throws java.io.IOException, PersistenceException
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:
java.io.IOException
- in case of input/output problem.PersistenceException
-
store
public boolean store(java.io.OutputStream out, PerspectiveModel info) throws java.io.IOException
Description copied from interface:Persister
SerializesPerspectiveInfo
to the supplied data stream.
-
-