java.lang.ClassLoader .
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface |
| Modifier and Type | Field and Description |
|---|---|
| public static final ClassLoader | BOOTCLASSPATH_CLASS_LOADER
The |
| private static final ClassLoaders. | |
| public static final ClassLoader | CLASSPATH_CLASS_LOADER
The |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static URL | |
| private static Map | getBootclasspathSubresourcesOf(final String name, boolean includeDirectories, final boolean recurse)
Finds subresources on the JVM's bootstrap classpath. |
| private static Map | |
| public static ClassLoader | getsResourceAsStream(final ResourceFinder finder, ClassLoader parent)
Creates and returns a |
| public static Map | Returns: Keys ending with a slash map to "directory resources", the other keys map to "content resources"The class loader to use; classLoader, final String null means use the system class loaderNo leading slash name, boolean includeDirectories, final boolean recurse)Returns a name-to-URL mapping of all resources "under" a given directory name. |
| private static Map | getSubresources(URL jarFileUrl, JarFile jarFile, String namePrefix, boolean includeDirectories, boolean recurse)
|
| public static Map | Returns: Keys ending with a slash map to "directory resources", the other keys map to "content resources"Returns a name-to-URL mapping of all resources "under" a given root resource. |
| BOOTCLASSPATH_CLASS_LOADER | back to summary |
|---|---|
| public static final ClassLoader BOOTCLASSPATH_CLASS_LOADER The | |
| BOOTCLASSPATH_SUBRESOURCES_OF | back to summary |
|---|---|
| private static final ClassLoaders. | |
| CLASSPATH_CLASS_LOADER | back to summary |
|---|---|
| public static final ClassLoader CLASSPATH_CLASS_LOADER The | |
| ClassLoaders | back to summary |
|---|---|
| private ClassLoaders() | |
| fileUrl | back to summary |
|---|---|
| private static URL fileUrl(File file) | |
| getBootclasspathSubresourcesOf | back to summary |
|---|---|
| private static Map Finds subresources on the JVM's bootstrap classpath. This is kind of tricky because the .jar files on the BOOTCLASSPATH don't contain "directory entries". | |
| getFileResources | back to summary |
|---|---|
| private static Map | |
| getsResourceAsStream | back to summary |
|---|---|
| public static ClassLoader getsResourceAsStream(final ResourceFinder finder, ClassLoader parent) Creates and returns a
Notice that | |
| getSubresources | back to summary |
|---|---|
| public static Map Returns a name-to-URL mapping of all resources "under" a given directory name.
Iff the name does not end with a slash, then calling this method is equivalent with calling
Otherwise, if the name does end with a slash, then this method returns a name-to-URL
mapping of all content resources who's names begin with the given name.
Iff recurse is If multiple resources have the name, then the resources are retrieved from the first occurrence.
| |
| getSubresources | back to summary |
|---|---|
| private static Map | |
| getSubresourcesOf | back to summary |
|---|---|
| public static Map Returns a name-to-URL mapping of all resources "under" a given root resource.
If the root designates a "content resource" (as opposed to a "directory resource"), then the
method returns
Otherwise, if the root designates a "directory resource", then this method returns a name-to-URL
mapping of all content resources that are located "under" the root resource.
Iff recurse is | |
| get | back to summary |
|---|---|
| public Map | |