public class ResourceUtils extends Object
Resource
Constructor and Description |
---|
ResourceUtils() |
Modifier and Type | Method and Description |
---|---|
static InputStream |
getResourceAsStream(Object object,
Resource resource)
Get the InputStream for this resource.
|
static URL |
getResourceAsURL(Object object,
Resource resource)
Get the URL for this resource.
|
public ResourceUtils()
public static InputStream getResourceAsStream(Object object, Resource resource)
object
- The object to grab the Classloader from.
This parameter is quite important from a
visibility of resources standpoint as the
hierarchy of Classloaders plays a role.resource
- The resource to load.Resource
,
getResourceAsURL(Object,Resource)
,
InputStream
public static URL getResourceAsURL(Object object, Resource resource)
object
- The object to grab the Classloader from.
This parameter is quite important from a
visibility of resources standpoint as the
hierarchy of Classloaders plays a role.resource
- The resource to load.Resource
,
getResourceAsStream(Object,Resource)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses