|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.application.state.impl.DefaultStateStorage com.cosylab.application.state.impl.SerialStateStorage
public class SerialStateStorage
This class implements the state storage and saves states into a binary file using simple JAVA serialization.
Field Summary |
---|
Fields inherited from class com.cosylab.application.state.impl.DefaultStateStorage |
---|
delegate, states |
Constructor Summary | |
---|---|
SerialStateStorage()
|
|
SerialStateStorage(StateStorage ss)
Creates a new SerialStateStorage object. |
Method Summary | |
---|---|
void |
load(java.io.InputStream is)
DOCUMENT ME! |
void |
load(java.lang.String filePath,
java.lang.String applicationName)
DOCUMENT ME! TODO: Add load(InputStream, String) to support loading from non-file sources! |
void |
store(java.io.OutputStream os)
DOCUMENT ME! |
void |
store(java.lang.String filePath,
java.lang.String applicationName)
DOCUMENT ME! |
Methods inherited from class com.cosylab.application.state.impl.DefaultStateStorage |
---|
add, addAll, contains, getInputStream, getOutputStream, getStates, iterator, remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SerialStateStorage()
public SerialStateStorage(StateStorage ss)
ss
- DOCUMENT ME!Method Detail |
---|
public void load(java.lang.String filePath, java.lang.String applicationName) throws java.io.IOException
StateStorage
load
in interface StateStorage
load
in class DefaultStateStorage
filePath
- DOCUMENT ME!applicationName
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!public void load(java.io.InputStream is) throws java.io.IOException
StateStorage
is
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!public void store(java.lang.String filePath, java.lang.String applicationName) throws java.io.IOException
DefaultStateStorage
store
in interface StateStorage
store
in class DefaultStateStorage
filePath
- DOCUMENT ME!applicationName
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!public void store(java.io.OutputStream os) throws java.io.IOException
StateStorage
java.io.IOException
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |