Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
epoxy
GitHub Repository: epoxy/proj11
Path: blob/master/SLICK_HOME/src/org/newdawn/slick/muffin/Muffin.java
1461 views
1
package org.newdawn.slick.muffin;
2
3
import java.io.IOException;
4
import java.util.HashMap;
5
6
/**
7
* A description of any class with the ability to store state locally
8
*
9
* @author kappaOne
10
*/
11
public interface Muffin {
12
/**
13
* Save a file of data
14
*
15
* @param data The data to store
16
* @param fileName The name of the file to store it against
17
* @throws IOException Indicates a failure to save the state
18
*/
19
public abstract void saveFile(HashMap data, String fileName) throws IOException;
20
21
/**
22
* Load a file of data from the store
23
*
24
* @param fileName The name of the file to retrieve
25
* @return The data retrieved
26
* @throws IOException Indicates a failure to load the state
27
*/
28
public abstract HashMap loadFile(String fileName) throws IOException;
29
}
30
31