com.github.mathiewz.slick.util.ResourceLocation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of modernized-slick Show documentation
Show all versions of modernized-slick Show documentation
The main purpose of this libraryis to modernize and maintain the slick2D library.
The newest version!
package com.github.mathiewz.slick.util;
import java.io.InputStream;
import java.net.URL;
/**
* A location from which resources can be loaded
*
* @author kevin
*/
public interface ResourceLocation {
/**
* Get a resource as an input stream
*
* @param ref
* The reference to the resource to retrieve
* @return A stream from which the resource can be read or
* null if the resource can't be found in this location
*/
public InputStream getResourceAsStream(String ref);
/**
* Get a resource as a URL
*
* @param ref
* The reference to the resource to retrieve
* @return A URL from which the resource can be read
*/
public URL getResource(String ref);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy