All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.mathiewz.slick.muffin.Muffin Maven / Gradle / Ivy

Go to download

The main purpose of this libraryis to modernize and maintain the slick2D library.

The newest version!
package com.github.mathiewz.slick.muffin;

import java.io.IOException;
import java.util.HashMap;

/**
 * A description of any class with the ability to store state locally
 *
 * @author kappaOne
 */
public interface Muffin {
    /**
     * Save a file of data
     *
     * @param data
     *            The data to store
     * @param fileName
     *            The name of the file to store it against
     * @throws IOException
     *             Indicates a failure to save the state
     */
    public abstract void saveFile(HashMap data, String fileName) throws IOException;

    /**
     * Load a file of data from the store
     *
     * @param fileName
     *            The name of the file to retrieve
     * @return The data retrieved
     * @throws IOException
     *             Indicates a failure to load the state
     */
    public abstract HashMap loadFile(String fileName) throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy