public class ResourceLoader
extends java.lang.Object
Constructor and Description |
---|
ResourceLoader() |
Modifier and Type | Method and Description |
---|---|
static java.net.URL |
getResource(java.lang.String name)
Load a resource via the thread context classloader.
|
static java.io.InputStream |
getResourceAsStream(java.lang.String name)
Load a resource via the thread context classloader.
|
public static java.net.URL getResource(java.lang.String name)
name
- a resource nameURL
or null if resource is not foundpublic static java.io.InputStream getResourceAsStream(java.lang.String name)
name
- a resource nameInputStream
or null if resource is not found