public class ByteClassLoader extends ClassLoader
Constructor and Description |
---|
ByteClassLoader(byte[] bytes)
Constructor taking a class as an array of bytes.
|
ByteClassLoader(File binaryFile)
Constructor that reads data from a file.
|
Modifier and Type | Method and Description |
---|---|
Class |
defineClass()
Define the class that this class loader knows about.
|
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 ByteClassLoader(File binaryFile)
binaryFile
- A file containing a Java class.public ByteClassLoader(byte[] bytes)
bytes
- Array of bytes containing a class definition.public Class defineClass()
Note that this does *not* override any of the java.lang.ClassLoader#defineClass methods. Calling this method directly is the only way to get the class defined by this classloader.
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.