Logo Search packages:      
Sourcecode: jamvm version File versions

final Class java::lang::ClassLoader::defineClass ( byte[]  data,
int  offset,
int  len 
) throws ClassFormatError [inline, protected]

Helper to define a class using a string of bytes. This version is not secure.

data the data representing the classfile, in classfile format
offset the offset into the data where the classfile starts
len the length of the classfile data in the array
the class that was defined
ClassFormatError if data is not in proper classfile format
IndexOutOfBoundsException if offset or len is negative, or offset + len exceeds data
use defineClass(String, byte[], int, int) instead

Definition at line 367 of file ClassLoader.java.

Referenced by defineClass().

    return defineClass(null, data, offset, len);

Generated by  Doxygen 1.6.0   Back to index