defineClass(String, byte[], int, int)
Converts an array of bytes into an instance of class Class. Before the Class can be used it must be resolved. This method is deprecated in favor of the version that takes a binary name as its first argument, and is more secure.
b
| The bytes that make up the class data. The bytes in positions off through off+len-1 should have the format of a valid class file as defined by The Java™ Virtual Machine Specification. | |
off
| The start offset in b of the class data | |
len
| The length of the class data |
ClassFormatError
| If the data did not contain a valid class | |
IndexOutOfBoundsException
| If either off or len is negative, or if off+len is greater than b.length. | |
SecurityException
| If an attempt is made to add this class to a package that
contains classes that were signed by a different set of
certificates than this class, or if an attempt is made
to define a class in a package with a fully-qualified name
that starts with " java.". |
loadClass(String, boolean), resolveClass(Class)
Diagram: ClassLoader