Package org.flexdock.perspective.persist
Class DefaultFilePersister
- java.lang.Object
-
- org.flexdock.perspective.persist.DefaultFilePersister
-
-
Constructor Summary
Constructors Constructor Description DefaultFilePersister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PerspectiveModelload(java.io.InputStream in)DeserializesPerspectiveInfofrom the supplied data stream.booleanstore(java.io.OutputStream out, PerspectiveModel info)SerializesPerspectiveInfoto the supplied data stream.
-
-
-
Method Detail
-
load
public PerspectiveModel load(java.io.InputStream in) throws java.io.IOException, PersistenceException
Description copied from interface:PersisterDeserializesPerspectiveInfofrom the supplied data stream.- Specified by:
loadin interfacePersister- Parameters:
in-InputStreamto load perspectiveInfo from.- Returns:
truewhen there was no problem with persisting the perspectiveInfo object.- Throws:
java.io.IOException- in case of input/output problem.PersistenceException
-
store
public boolean store(java.io.OutputStream out, PerspectiveModel info) throws java.io.IOExceptionDescription copied from interface:PersisterSerializesPerspectiveInfoto the supplied data stream.
-
-