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.net.URLClassLoader

Synopsis

This class provides a concrete class loader that may be used to load classes from one or more URLs (either http-based or file-based URLs). Since it is a secure class loader, classes loaded from a URL class loader will be fully integrated into the access controller’s security model.

Class Definition

public class java.net.URLClassLoader
	extends java.security.SecureClassLoader {

	// Constructors
	public URLClassLoader(URL[], ClassLoader);
	public URLClassLoader(URL[]);
	public URLCLassLoader(URL[], ClassLoader, URLStreamHandlerFactory);

	// Class Methods
	public static URLClassLoader newInstance(URL[]);
	public static URLClassLoader newInstance(URL[], ClassLoader);

	// Instance Methods
	public URL findResource(String);
	public Enumeration findResources(String);
	public URL[] getURLs();

	// Protected Instance Methods
	protected void addURL(URL);
	protected Package definePackage(String, Manifest, URL);
	protected Class findClass(String);
	protected PermissionCollection getPermissions(CodeSource);
}

See also:

ClassLoader, SecureClassLoader

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