|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.muffin.WebstartMuffin
public class WebstartMuffin
A muffin load/save implementation based on using Webstart Muffins (a bit like cookies only for webstart)
Constructor Summary | |
---|---|
WebstartMuffin()
|
Method Summary | |
---|---|
java.util.HashMap |
loadFile(java.lang.String fileName)
Load a file of data from the store |
void |
saveFile(java.util.HashMap scoreMap,
java.lang.String fileName)
Save a file of data |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebstartMuffin()
Method Detail |
---|
public void saveFile(java.util.HashMap scoreMap, java.lang.String fileName) throws java.io.IOException
Muffin
saveFile
in interface Muffin
scoreMap
- The data to storefileName
- The name of the file to store it against
java.io.IOException
- Indicates a failure to save the stateMuffin.saveFile(java.util.HashMap, java.lang.String)
public java.util.HashMap loadFile(java.lang.String fileName) throws java.io.IOException
Muffin
loadFile
in interface Muffin
fileName
- The name of the file to retrieve
java.io.IOException
- Indicates a failure to load the stateMuffin.loadFile(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |