@@ -0,0 +1,1979 @@
+%0A/*%0A * Java core library component.%0A *%0A * Copyright (c) 1999%0A *%09Archie L. Cobbs.  All rights reserved.%0A * Copyright (c) 1999%0A *%09Transvirtual Technologies, Inc.  All rights reserved.%0A *%0A * See the file %22license.terms%22 for information on usage and redistribution%0A * of this file.%0A *%0A * Author: Archie L. Cobbs %3Carchie@whistle.com%3E%0A */%0A%0Apackage java.net;%0A%0Aimport java.io.IOException;%0Aimport java.security.CodeSource;%0Aimport java.security.PermissionCollection;%0Aimport java.security.SecureClassLoader;%0Aimport java.util.Enumeration;%0Aimport java.util.Vector;%0Aimport java.util.jar.Manifest;%0A%0A// XXX this class is not complete!%0A%0Apublic class URLClassLoader extends SecureClassLoader %7B%0A%09final Vector urls;%0A%09final ClassLoader parent;%0A%0A%09public URLClassLoader(URL%5B%5D urls, ClassLoader parent) %7B%0A%09%09this(urls, parent, null);%0A%09%7D%0A%0A%09public URLClassLoader(URL%5B%5D urls) %7B%0A%09%09this(urls, URLClassLoader.class.getClassLoader(), null);%0A%09%7D%0A%0A%09public URLClassLoader(URL%5B%5D urls, ClassLoader parent,%0A%09%09%09URLStreamHandlerFactory factory) %7B%0A%09%09this.urls = new Vector();%0A%09%09for (int i = 0; i %3C urls.length; i++) %7B%0A%09%09%09this.urls.addElement(urls%5Bi%5D);%0A%09%09%7D%0A%09%09this.parent = parent;%0A%09%7D%0A%0A%09protected void addURL(URL url) %7B%0A%09%09urls.addElement(url);%0A%09%7D%0A%0A%09public URL%5B%5D getURLs() %7B%0A%09%09return (URL%5B%5D)urls.toArray(new URL%5Burls.size()%5D);%0A%09%7D%0A%0A%09//protected Class findClass(String name) throws ClassNotFoundException %7B%0A%09//%7D%0A%0A%09protected Package definePackage(String name, Manifest man, URL url)%0A%09%09%09throws IllegalArgumentException %7B%0A%09%09return super.definePackage(name, %22%22, %22%22, %22%22, %22%22, %22%22, %22%22, url);%0A%09%7D%0A%0A%09//public URL findResource(String name) %7B%0A%09//%7D%0A%0A%09//public Enumeration findResources(String name) throws IOException %7B%0A%09//%7D%0A%0A%09protected PermissionCollection getPermissions(CodeSource codesource) %7B%0A%09%09return null;%0A%09%7D%0A%0A%09public static URLClassLoader newInstance(URL%5B%5D urls,%0A%09%09%09ClassLoader parent) %7B%0A%09%09return new URLClassLoader(urls, parent);%0A%09%7D%0A%0A%09public static URLClassLoader newInstance(URL%5B%5D urls) %7B%0A%09%09return new URLClassLoader(urls);%0A%09%7D%0A%7D%0A%0A

Add missing class (mostly unimplemented).