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