public final class ResourceLookup extends Object
|Modifier and Type||Method and Description|
Returns the stream of a resource at a given path, using the CL of a class.
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)
public static InputStream read(String path, Class<?> clazz, boolean useTLCL)
path- the path to search
Classinstance which class loader should be used when doing the lookup.
trueif the thread local class loader should be used as well, in addition to
InputStreamif the resource was found, or
read(String, ClassLoader, boolean)
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.