gnu.java.net.loader

Class JarURLLoader


public final class JarURLLoader
extends URLLoader

A JarURLLoader is a type of URLLoader only loading from jar url.

Constructor Summary

JarURLLoader(URLClassLoader classloader, URLStreamHandlerCache cache, URLStreamHandlerFactory factory, URL baseURL, URL absoluteUrl)

Method Summary

ArrayList
getClassPath()
Return a list of new URLLoader objects representing any class path entries added by this container.
Manifest
getManifest()
Returns the Manifest associated with the Resources loaded by this URLLoader or null there is no such Manifest.
Resource
getResource(String name)
get resource with the name "name" in the jar url

Methods inherited from class gnu.java.net.loader.URLLoader

getBaseURL, getClass, getClassPath, getManifest, getResource

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

JarURLLoader

public JarURLLoader(URLClassLoader classloader,
                    URLStreamHandlerCache cache,
                    URLStreamHandlerFactory factory,
                    URL baseURL,
                    URL absoluteUrl)

Method Details

getClassPath

public ArrayList getClassPath()
Return a list of new URLLoader objects representing any class path entries added by this container.
Overrides:
getClassPath in interface URLLoader

getManifest

public Manifest getManifest()
Returns the Manifest associated with the Resources loaded by this URLLoader or null there is no such Manifest.
Overrides:
getManifest in interface URLLoader

getResource

public Resource getResource(String name)
get resource with the name "name" in the jar url
Overrides:
getResource in interface URLLoader