Path: blob/master/SLICK_HOME/src/org/newdawn/slick/muffin/Muffin.java
1461 views
package org.newdawn.slick.muffin;12import java.io.IOException;3import java.util.HashMap;45/**6* A description of any class with the ability to store state locally7*8* @author kappaOne9*/10public interface Muffin {11/**12* Save a file of data13*14* @param data The data to store15* @param fileName The name of the file to store it against16* @throws IOException Indicates a failure to save the state17*/18public abstract void saveFile(HashMap data, String fileName) throws IOException;1920/**21* Load a file of data from the store22*23* @param fileName The name of the file to retrieve24* @return The data retrieved25* @throws IOException Indicates a failure to load the state26*/27public abstract HashMap loadFile(String fileName) throws IOException;28}293031