opengl.common
Class ResourceRetriever
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceRetriever
public ResourceRetriever()
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