org.flexdock.perspective.persist
public interface Persister
| Modifier and Type | Method and Description |
|---|---|
PerspectiveModel |
load(InputStream is)
Deserializes
PerspectiveInfo from the supplied data stream. |
boolean |
store(OutputStream os,
PerspectiveModel perspectiveInfo)
Serializes
PerspectiveInfo to the supplied data stream. |
boolean store(OutputStream os, PerspectiveModel perspectiveInfo) throws 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.IOException - in case of input/output problem.PersistenceExceptionPerspectiveModel load(InputStream is) throws 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.IOException - in case of input/output problem.PersistenceException