public final class ResourceLookup extends Object
Modifier and Type | Method and Description |
---|---|
static InputStream |
read(String path,
Class<?> clazz,
boolean useTLCL)
Returns the stream of a resource at a given path, using the CL of a class.
|
static InputStream |
read(String path,
ClassLoader classLoader,
boolean useTLCL)
Returns the stream of a resource at a given path, using some optional class loaders.
|
public static InputStream read(String path, ClassLoader classLoader, boolean useTLCL)
path
- the path to searchclassLoader
- a ClassLoader
instance to use when searching; may be null.useTLCL
- true
if the thread local class loader should be used as well, in addition to classLoader
InputStream
if the resource was found, or null
otherwisepublic static InputStream read(String path, Class<?> clazz, boolean useTLCL)
path
- the path to searchclazz
- a Class
instance which class loader should be used when doing the lookup.useTLCL
- true
if the thread local class loader should be used as well, in addition to classLoader
InputStream
if the resource was found, or null
otherwiseread(String, ClassLoader, boolean)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.