O'Reilly logo

Java Security by Scott Oaks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required