| 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 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),
InputStreampublic 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)Copyright © 2012 JBoss by Red Hat. All Rights Reserved.