/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This source file is part of SableVM classlib-stubs. * * * * See the file "LICENSE" for the copyright information and for * * the terms and conditions for copying, distribution and * * modification of this source file. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ package java.lang; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.nio.ByteBuffer; import java.security.ProtectionDomain; import java.util.Enumeration; public abstract class ClassLoader extends Object { protected ClassLoader(ClassLoader parent) { } protected ClassLoader() { } native public Class loadClass(String name) throws ClassNotFoundException; native protected Class loadClass(String name, boolean resolve) throws ClassNotFoundException; native protected Class findClass(String name) throws ClassNotFoundException; @Deprecated native protected final Class defineClass(byte[] b, int off, int len) throws ClassFormatError; native protected final Class defineClass(String name, byte[] b, int off, int len) throws ClassFormatError; native protected final Class defineClass(String name, byte[] b, int off, int len, ProtectionDomain protectionDomain) throws ClassFormatError; native protected final Class defineClass(String name, ByteBuffer b, ProtectionDomain protectionDomain) throws ClassFormatError; native protected final void resolveClass(Class c); native protected final Class findSystemClass(String name) throws ClassNotFoundException; native protected final Class findLoadedClass(String name); native protected final void setSigners(Class c, Object[] signers); native public URL getResource(String name); native public Enumeration getResources(String name) throws IOException; native protected URL findResource(String name); native protected Enumeration findResources(String name) throws IOException; native public static URL getSystemResource(String name); native public static Enumeration getSystemResources(String name) throws IOException; native public InputStream getResourceAsStream(String name); native public static InputStream getSystemResourceAsStream(String name); native public final ClassLoader getParent(); native public static ClassLoader getSystemClassLoader(); native protected Package definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) throws IllegalArgumentException; native protected Package getPackage(String name); native protected Package[] getPackages(); native protected String findLibrary(String libname); native public void setDefaultAssertionStatus(boolean enabled); native public void setPackageAssertionStatus(String packageName, boolean enabled); native public void setClassAssertionStatus(String className, boolean enabled); native public void clearAssertionStatus(); }