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