|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StateStorage
This interface should be implemented by the objects which will be used for
storing and restoring an array of the State
objects.
Method Summary | |
---|---|
void |
add(State state)
Adds new state to storage. |
void |
addAll(java.util.List states)
DOCUMENT ME! |
boolean |
contains(State st)
DOCUMENT ME! |
java.util.List |
getStates()
DOCUMENT ME! |
java.util.Iterator |
iterator()
Rerurns iterator over states. |
void |
load(java.io.InputStream stream)
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 |
remove(State st)
DOCUMENT ME! |
void |
store(java.io.OutputStream stream)
DOCUMENT ME! |
void |
store(java.lang.String filePath,
java.lang.String applicationName)
DOCUMENT ME! |
Method Detail |
---|
void add(State state)
state
- the state to be addedvoid addAll(java.util.List states)
states
- DOCUMENT ME!java.util.List getStates()
void load(java.lang.String filePath, java.lang.String applicationName) throws java.io.IOException
filePath
- DOCUMENT ME!applicationName
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!void load(java.io.InputStream stream) throws java.io.IOException
stream
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!void store(java.lang.String filePath, java.lang.String applicationName) throws java.io.IOException
filePath
- DOCUMENT ME!applicationName
- DOCUMENT ME!
java.io.IOException
- DOCUMENT ME!void store(java.io.OutputStream stream) throws java.io.IOException
stream
-
java.io.IOException
- DOCUMENT ME!void remove(State st)
st
- DOCUMENT ME!boolean contains(State st)
st
- DOCUMENT ME!
java.util.Iterator iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |