private static class ReflectionPlume.PromiscuousLoader
extends java.lang.ClassLoader
Modifier | Constructor and Description |
---|---|
private |
PromiscuousLoader() |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
defineClassFromFile(java.lang.String className,
java.lang.String pathname)
Converts the bytes in a file into an instance of class Class, and also resolves (links) the
class.
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public java.lang.Class<?> defineClassFromFile(java.lang.String className, java.lang.String pathname) throws java.io.FileNotFoundException, java.io.IOException
className
- the expected binary name of the class to define, or null if not knownpathname
- the file from which to load the classClass
object that was createdjava.io.FileNotFoundException
- if the file does not existjava.io.IOException
- if there is trouble reading the fileClassLoader.defineClass(String,byte[],int,int)