edu.princeton.toy
public abstract class TResourceLoader extends java.lang.Object
| Constructor and Description |
|---|
TResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
static java.io.BufferedReader |
getBufferedReader(java.lang.String path)
Returns the BufferedReader object for a JARed file.
|
static java.awt.Image |
getImage(java.lang.String path)
Returns the Image object for a JARed picture.
|
static java.io.InputStream |
getInputStream(java.lang.String path)
Returns the InputStream object for a JARed file.
|
static java.io.Reader |
getReader(java.lang.String path)
Returns the Reader object for a JARed file.
|
static java.net.URL |
getUrl(java.lang.String path)
Returns the URL object for a JARed resource.
|
public static java.net.URL getUrl(java.lang.String path)
path - The path of the resource relative to the root of the JAR archive.public static java.awt.Image getImage(java.lang.String path)
path - The path of the picture relative to the root of the JAR archive.public static java.io.InputStream getInputStream(java.lang.String path)
throws java.io.IOException
path - The path of the file relative to the root of the JAR archive.java.io.IOExceptionpublic static java.io.Reader getReader(java.lang.String path)
throws java.io.IOException
path - The path of the file relative to the root of the JAR archive.java.io.IOExceptionpublic static java.io.BufferedReader getBufferedReader(java.lang.String path)
throws java.io.IOException
path - The path of the file relative to the root of the JAR archive.java.io.IOException