net.sf.jasperreports.engine.util
Class ClassLoaderResource

java.lang.Object
  extended by net.sf.jasperreports.engine.util.ClassLoaderResource

public class ClassLoaderResource
extends java.lang.Object

Details of a resource found on a classloader.

Version:
$Id: ClassLoaderResource.java 4595 2011-09-08 15:55:10Z teodord $
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
JRLoader.getClassLoaderResources(String)

Constructor Summary
ClassLoaderResource(java.net.URL url, java.lang.ClassLoader classLoader)
          Creates a classloader resource.
 
Method Summary
 java.lang.ClassLoader getClassLoader()
          Returns the classloader on which the resource was found.
 java.net.URL getUrl()
          Returns the URL of the resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderResource

public ClassLoaderResource(java.net.URL url,
                           java.lang.ClassLoader classLoader)
Creates a classloader resource.

Parameters:
url - the URL of the resource
classLoader - the classloader on which it was found
Method Detail

getUrl

public java.net.URL getUrl()
Returns the URL of the resource.

Returns:
the resource URL

getClassLoader

public java.lang.ClassLoader getClassLoader()
Returns the classloader on which the resource was found.

Returns:
the classloader that found the resource


© 2001-2010 Jaspersoft Corporation www.jaspersoft.com