vooga.levelEditor
Class ResourceLoader

java.lang.Object
  extended by vooga.levelEditor.ResourceLoader

public class ResourceLoader
extends java.lang.Object

Provides convenient, environment-independent access to resource data located within project packages.

Author:
Phil Puryear

Constructor Summary
ResourceLoader()
           
 
Method Summary
static java.io.File getFile(java.lang.Package resPackage, java.lang.String fileName)
          Loads a resource file from the specified package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLoader

public ResourceLoader()
Method Detail

getFile

public static java.io.File getFile(java.lang.Package resPackage,
                                   java.lang.String fileName)
Loads a resource file from the specified package.

Parameters:
resPackage - The package that contains this resource.
fileName - The filename of this resource.
Returns:
The file with the given name from the given package, or null if the resource cannot be retrieved.