Name

Class java.lang.ClassLoader

Synopsis

This class is the basis for loading a class dynamically in Java. For historical reasons, it appears in this package, but it is recommended that all new class loaders subclass the SecureClassLoader class in the java.security package instead of using this class. Loading a class explicitly may be done with the loadClass( ) method of this class (though classes are usually simply loaded as needed).

Class Definition

public abstract class java.lang.ClassLoader extends java.lang.Object { // Constructors protected ClassLoader( ); protected ClassLoader(ClassLoader); // Class Methods public static ClassLoader getSystemClassLoader( ); public static URL getSystemResource(String); public static InputStream getSystemResourceAsStream(String); public static Enumeration getSystemResources(String); // Instance Methods public ClassLoader getParent( ); public URL getResource(String); public InputStream getResourceAsStream(String); public final Enumeration getResources(String); public Class loadClass(String); // Protected Instance Methods protected final Class defineClass(String, byte[], int, int); protected final Class defineClass(byte[], int, int); protected final Class defineClass(String, byte[], int, int, ProtectionDomain); protected Package definePackage(String, String, String, String, String, String, String, URL); protected Class findClass(String); protected String findLibrary(String); protected final Class findLoadedClass(String); protected Class findLocalClass(String); ...

Get Java Security, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.