Skip to content

void256/simpleresourceloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ResourceLoader

Original code was part of Slick2d done by Kevin Glass (http://www.cokeandcode.com)

The ResourceLoader allows reading of resources from different locations. By default it uses a ClasspathLocation and a FileSystemLocation. It will first check the ClasspathLocation and if the resource could not be found it will check the FileSystemLocation next.

Other Locations are easily possible by implementing the simple ResourceLocation interface. The order of the locations can be changed easily as well.

The ResourceLoader was used in several projects which made it suitable for a standalone project.

Example Usage

ResourceLoader loader = new ResourceLoader();
InputStream in = loader.getResourceAsStream("test.stuff");

About

Helper classes to load resources from configurable sources

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages