opengl.common
Class ResourceRetriever

java.lang.Object
  extended by opengl.common.ResourceRetriever

public class ResourceRetriever
extends java.lang.Object

Utility class that allows transparent reading of files from the current working directory or from the classpath.

Author:
Pepijn Van Eeckhoudt

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

Constructor Detail

ResourceRetriever

public ResourceRetriever()
Method Detail

getResource

public static java.net.URL getResource(java.lang.String filename)
                                throws java.io.IOException
Throws:
java.io.IOException

getResourceAsStream

public static java.io.InputStream getResourceAsStream(java.lang.String filename)
                                               throws java.io.IOException
Throws:
java.io.IOException