| Modifier and Type | Field and Description |
|---|---|
| pack-priv List | dirs
seek classes in dirs first |
| private URL[] | urlsForDebugString
save URL[] only for toString |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | |
| public URL | getResource(String
The resource name name)Overrides java. |
| public InputStream | getResourceAsStream(String
The resource name name)Overrides java. |
| public synchronized Class | loadClass(String
The binary name of the class name, boolean If resolve)true then resolve the classOverrides java. |
| private byte[] | |
| public String | Returns: String with debug info: urls and classes usedOverrides java. |
| dirs | back to summary |
|---|---|
| pack-priv List<File> dirs seek classes in dirs first | |
| urlsForDebugString | back to summary |
|---|---|
| private URL[] urlsForDebugString save URL[] only for toString | |
| UtilClassLoader | back to summary |
|---|---|
| public UtilClassLoader(URL[] urls, File[] dirs) | |
| getClassData | back to summary |
|---|---|
| private byte[] getClassData(File f) | |
| getResource | back to summary |
|---|---|
| public URL getResource(String name) Overrides java. Doc from java. Finds the resource with the given name. A resource is some data (images, audio, text, etc) that can be accessed by class code in a way that is independent of the location of the code. The name of a resource is a ' Resources in named modules are subject to the encapsulation rules
specified by
| |
| getResourceAsStream | back to summary |
|---|---|
| public InputStream getResourceAsStream(String name) Overrides java. Doc from java. Returns an input stream for reading the specified resource. If this loader is closed, then any resources opened by this method will be closed. The search order is described in the documentation for
| |
| loadClass | back to summary |
|---|---|
| public synchronized Class Overrides java. Doc from java. Loads the class with the specified binary name. The default implementation of this method searches for classes in the following order:
If the class was found using the above steps, and the
Subclasses of Unless overridden, this method synchronizes on the result of
| |
| readClass | back to summary |
|---|---|
private byte[] readClass(String className) throws ClassNotFoundException
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |