File: java.lang.ClassLoader

package info (click to toggle)
bock 0.20.2.1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,228 kB
  • ctags: 1,370
  • sloc: ansic: 7,367; java: 5,553; yacc: 963; lex: 392; makefile: 243; sh: 90; perl: 42
file content (37 lines) | stat: -rw-r--r-- 934 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// java.lang.ClassLoader
// An implementation of the Java Language Spec sec 20.14
// Written by Charles Briscoe-Smith; refer to the file LEGAL for details.

package java.lang;

public abstract class ClassLoader {

	protected ClassLoader() throws SecurityException
	{
		SecurityManager sec=System.getSecurityManager();
		if (sec!=null) sec.checkCreateClassLoader();
	}

	protected abstract Class loadClass(String name, boolean link)
			throws ClassNotFoundException;

	protected final Class defineClass(byte[] data, int off, int len)
			throws NullPointerException,
			       IndexOutOfBoundsException,
			       ClassFormatError
	{
		throw new ClassFormatError("Can't define classes");
	}

	protected final void resolveClass(Class c) throws NullPointerException
	{
		// All classes are fully linked anyway
	}

	protected final Class findSystemClass(String name)
			throws ClassNotFoundException
	{
		return Class.forName(name);
	}

}