graphics
Class ResourceRetriever

java.lang.Object
  extended by graphics.ResourceRetriever

public class ResourceRetriever
extends Object

Utility class that allows transparent reading of files from the current working directory or from the classpath. See nehe.gamedev.net for documentation

Author:
Pepijn Van Eeckhoudt

Constructor Summary
ResourceRetriever()
           
 
Method Summary
static URL getResource(String filename)
           
static InputStream getResourceAsStream(String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceRetriever

public ResourceRetriever()
Method Detail

getResource

public static URL getResource(String filename)
                       throws IOException
Throws:
IOException

getResourceAsStream

public static InputStream getResourceAsStream(String filename)
                                       throws IOException
Throws:
IOException