public class ByteClassLoader extends ClassLoader
Constructor and Description |
---|
ByteClassLoader(ClassLoader parent)
Create a new byte class loader.
|
Modifier and Type | Method and Description |
---|---|
Class |
loadClass(String classname)
Load a class via the classname.
|
Class |
loadClass(String classname,
boolean resolve)
Load a class via the classname.
|
Class |
loadClass(String classname,
byte[] data,
boolean resolve)
Load a class via the classname.
|
clearAssertionStatus, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
public ByteClassLoader(ClassLoader parent)
public Class loadClass(String classname) throws ClassNotFoundException
loadClass
in class ClassLoader
classname
- The class name.ClassNotFoundException
public Class loadClass(String classname, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
classname
- The class name.resolve
- The resolve flag.ClassNotFoundException
public Class loadClass(String classname, byte[] data, boolean resolve) throws ClassNotFoundException
classname
- The class name.resolve
- The resolve flag.ClassNotFoundException
Copyright © 2012. All Rights Reserved.