public class XMLPersister extends java.lang.Object implements Persister
| Constructor and Description |
|---|
XMLPersister() |
| Modifier and Type | Method and Description |
|---|---|
PerspectiveModel |
load(java.io.InputStream is)
Deserializes
PerspectiveInfo from the supplied data stream. |
static XMLPersister |
newDefaultInstance() |
boolean |
store(java.io.OutputStream os,
PerspectiveModel perspectiveModel)
Serializes
PerspectiveInfo to the supplied data stream. |
public boolean store(java.io.OutputStream os,
PerspectiveModel perspectiveModel)
throws java.io.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.java.io.IOException - in case of input/output problem.PersistenceExceptionpublic PerspectiveModel load(java.io.InputStream is) throws java.io.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.java.io.IOException - in case of input/output problem.PersistenceExceptionpublic static XMLPersister newDefaultInstance()