public class JARClassLoader
extends java.lang.ClassLoader
implements java.io.Serializable
Constructor and Description |
---|
JARClassLoader(byte[] jarContents)
Creates a custom class loader that makes objects from the jarContents
|
JARClassLoader(byte[][] jarContents, java.lang.ClassLoader parentClLoader)
Creates a custom class loader that makes objects from array of jarContents
|
JARClassLoader(byte[] jarContents, java.lang.ClassLoader parentClLoader)
Creates a custom class loader that makes objects from the jarContents
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Class |
findClass(java.lang.String name)
Locates the class
|
protected java.net.URL |
findResource(java.lang.String name)
This method willl always return null as the implementation is undefined.
|
java.net.URL |
getResource(java.lang.String name)
This method willl always return null as the implementation is undefined.
|
java.io.InputStream |
getResourceAsStream(java.lang.String name)
Get the resource with the given name as an InputStream
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public JARClassLoader(byte[][] jarContents, java.lang.ClassLoader parentClLoader) throws java.io.IOException
java.io.IOException
public JARClassLoader(byte[] jarContents, java.lang.ClassLoader parentClLoader) throws java.io.IOException
java.io.IOException
public JARClassLoader(byte[] jarContents) throws java.io.IOException
java.io.IOException
protected java.lang.Class findClass(java.lang.String name) throws java.lang.ClassNotFoundException
findClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
protected java.net.URL findResource(java.lang.String name)
findResource
in class java.lang.ClassLoader
public java.net.URL getResource(java.lang.String name)
getResource
in class java.lang.ClassLoader
public java.io.InputStream getResourceAsStream(java.lang.String name)
getResourceAsStream
in class java.lang.ClassLoader
resource
- name