net.sf.jasperreports.engine.util

## Class ClassLoaderResource

- java.lang.Object
- - 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 5878 2013-01-07 20:23:13Z teodord $
  Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
  See Also:
    `JRLoader.getClassLoaderResources(String)`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ClassLoaderResource(java.net.URL url, java.lang.ClassLoader classLoader)` Creates a classloader resource.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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