|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.log4j.lf5.util.ResourceUtils
public class ResourceUtils
ResourceUtils. Provide a set of convenience methods for working with Resources.
Resource| Constructor Summary | |
|---|---|
ResourceUtils()
|
|
| Method Summary | |
|---|---|
static java.io.InputStream |
getResourceAsStream(java.lang.Object object,
Resource resource)
Get the InputStream for this resource. |
static java.net.URL |
getResourceAsURL(java.lang.Object object,
Resource resource)
Get the URL for this resource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceUtils()
| Method Detail |
|---|
public static java.io.InputStream getResourceAsStream(java.lang.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 java.net.URL getResourceAsURL(java.lang.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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||