org.flexdock.perspective.persist
Constructor and Description |
---|
DefaultFilePersister() |
Modifier and Type | Method and Description |
---|---|
PerspectiveModel |
load(InputStream in)
Deserializes
PerspectiveInfo from the supplied data stream. |
boolean |
store(OutputStream out,
PerspectiveModel info)
Serializes
PerspectiveInfo to the supplied data stream. |
public PerspectiveModel load(InputStream in) throws IOException, PersistenceException
Persister
PerspectiveInfo
from the supplied data stream.load
in interface Persister
in
- InputStream
to load perspectiveInfo from.true
when there was no problem with persisting the perspectiveInfo object.IOException
- in case of input/output problem.PersistenceException
public boolean store(OutputStream out, PerspectiveModel info) throws IOException
Persister
PerspectiveInfo
to the supplied data stream.store
in interface Persister
out
- OutputStream
to persist perspectiveInfo to.info
- data object to be persistedtrue
when there was no problem with persisting the perspectiveInfo object.IOException
- in case of input/output problem.