public final class ResourceUtils extends Object
Modifier and Type | Method and Description |
---|---|
static URL |
getResource(Class<?> aClass,
String aName)
Returns the resource with the given name from the "datafiles"-directory.
|
static URL |
getResource(Class<?> aClass,
String aBaseDir,
String aName)
Returns the resource with the given name from the given base directory.
|
public static URL getResource(Class<?> aClass, String aName)
aClass
- the class to which the resource should be located, cannot be
null
;aName
- the resource name, including file extension, cannot be
null
.null
.public static URL getResource(Class<?> aClass, String aBaseDir, String aName)
aClass
- the class to which the resource should be located, cannot be
null
;aBaseDir
- the base directory where the resource should be located, cannot be
null
;aName
- the resource name, including file extension, cannot be
null
.null
.Copyright © 2015 L'Xtreme IT consultancy. All rights reserved.