ClassLoader allows for the loading of a set of Java classes provided in class file format.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public | ByteArrayClassLoader(Map<String, byte[]>
String className => byte[] data, or String classFileName => byte[] data classes)The given |
| public | ByteArrayClassLoader(Map<String, byte[]>
String className => byte[] data, or String classFileName => byte[] data
|
| Modifier and Type | Method and Description |
|---|---|
| protected Class | findClass(String
The binary name of the class name)Overrides java. ClassLoader#findClass(String).
|
| public InputStream | getResourceAsStream(String
The resource name name)Overrides java. |
| public void |
| classes | back to summary |
|---|---|
| private final Map<String, byte[]> classes | |
| resources | back to summary |
|---|---|
| private Map<String, byte[]> resources | |
| ByteArrayClassLoader | back to summary |
|---|---|
| public ByteArrayClassLoader(Map<String, byte[]> classes) The given | |
| ByteArrayClassLoader | back to summary |
|---|---|
| public ByteArrayClassLoader(Map<String, byte[]> classes, ClassLoader parent) | |
| findClass | back to summary |
|---|---|
| protected Class Overrides java. Implements
Notice that, although nowhere documented, no more than one thread at a time calls this method, because
| |
| getResourceAsStream | back to summary |
|---|---|
| public InputStream getResourceAsStream(String name) Overrides java. Doc from java. Returns an input stream for reading the specified resource. The search order is described in the documentation for Resources in named modules are subject to the encapsulation rules
specified by
| |
| setResources | back to summary |
|---|---|
| public void setResources(Map<String, byte[]> resources) | |