Package net.sf.jasperreports.engine.util
Class ClassLoaderResource
- java.lang.Object
-
- net.sf.jasperreports.engine.util.ClassLoaderResource
-
public class ClassLoaderResource extends Object
Details of a resource found on a classloader.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
JRLoader.getClassLoaderResources(String)
-
-
Constructor Summary
Constructors Constructor Description ClassLoaderResource(URL url, ClassLoader classLoader)
Creates a classloader resource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassLoader
getClassLoader()
Returns the classloader on which the resource was found.URL
getUrl()
Returns the URL of the resource.
-
-
-
Constructor Detail
-
ClassLoaderResource
public ClassLoaderResource(URL url, ClassLoader classLoader)
Creates a classloader resource.- Parameters:
url
- the URL of the resourceclassLoader
- the classloader on which it was found
-
-
Method Detail
-
getUrl
public URL getUrl()
Returns the URL of the resource.- Returns:
- the resource URL
-
getClassLoader
public ClassLoader getClassLoader()
Returns the classloader on which the resource was found.- Returns:
- the classloader that found the resource
-
-