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 Persister
os
- 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.PersistenceException
public PerspectiveModel load(InputStream is) throws IOException, PersistenceException
PerspectiveInfo
from the supplied data stream.load
in interface Persister
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
public static XMLPersister newDefaultInstance()