|
||||||||||
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.TextStateStorage
public class TextStateStorage
This class is an implementation of the StateStorage
that uses
simple text file to store the array of the State
objects.
Stored file is the plain java.util.Properties
file format with
the few 'weird' properties added which are used for fast hierarchy
resolving.
Field Summary | |
---|---|
protected static java.lang.String |
childDelimiter
|
protected static java.lang.String |
stateEnd
|
protected static java.lang.String |
stateStart
|
Fields inherited from class com.cosylab.application.state.impl.DefaultStateStorage |
---|
delegate, states |
Constructor Summary | |
---|---|
TextStateStorage()
|
|
TextStateStorage(StateStorage ss)
Creates a new TextStateStorage 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 |
Field Detail |
---|
protected static final java.lang.String stateStart
protected static final java.lang.String stateEnd
protected static final java.lang.String childDelimiter
Constructor Detail |
---|
public TextStateStorage()
public TextStateStorage(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 |