org.newdawn.slick.muffin
Class FileMuffin

java.lang.Object
  extended by org.newdawn.slick.muffin.FileMuffin
All Implemented Interfaces:
Muffin

public class FileMuffin
extends java.lang.Object
implements Muffin

An implementation of the muffin load/save mechanism based around using the local file system.

Author:
kappaOne

Constructor Summary
FileMuffin()
           
 
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

FileMuffin

public FileMuffin()
Method Detail

saveFile

public void saveFile(java.util.HashMap scoreMap,
                     java.lang.String fileName)
              throws java.io.IOException
Description copied from interface: Muffin
Save a file of data

Specified by:
saveFile in interface Muffin
Parameters:
scoreMap - The data to store
fileName - The name of the file to store it against
Throws:
java.io.IOException - Indicates a failure to save the state
See Also:
Muffin.saveFile(java.util.HashMap, java.lang.String)

loadFile

public java.util.HashMap loadFile(java.lang.String fileName)
                           throws java.io.IOException
Description copied from interface: Muffin
Load a file of data from the store

Specified by:
loadFile in interface Muffin
Parameters:
fileName - The name of the file to retrieve
Returns:
The data retrieved
Throws:
java.io.IOException - Indicates a failure to load the state
See Also:
Muffin.loadFile(java.lang.String)


Copyright © 2006 New Dawn Software. All Rights Reserved.