org.flexdock.perspective.persist.xml
public class XMLPersister extends Object implements Persister
| Constructor and Description |
|---|
XMLPersister() |
| Modifier and Type | Method and Description |
|---|---|
PerspectiveModel |
load(InputStream is)
Deserializes
PerspectiveInfo from the supplied data stream. |
static XMLPersister |
newDefaultInstance() |
boolean |
store(OutputStream os,
PerspectiveModel perspectiveModel)
Serializes
PerspectiveInfo to the supplied data stream. |
public boolean store(OutputStream os, PerspectiveModel perspectiveModel) throws IOException, PersistenceException
PerspectiveInfo to the supplied data stream.store in interface Persisteros - OutputStream to persist perspectiveInfo to.perspectiveModel - data object to be persistedtrue when there was no problem with persisting the perspectiveInfo object.IOException - in case of input/output problem.PersistenceExceptionpublic PerspectiveModel load(InputStream is) throws IOException, PersistenceException
PerspectiveInfo from the supplied data stream.load in interface Persisteris - InputStream to load perspectiveInfo from.true when there was no problem with persisting the perspectiveInfo object.IOException - in case of input/output problem.PersistenceExceptionpublic static XMLPersister newDefaultInstance()