|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectClassLoader
FileClassLoader
public class FileClassLoader
This class loader loads a class from a file which is given by a pathname. It is independent of the CLASSPATH setting. It is invoked only if the normal class loading does not find the file.
Constructor Summary | |
---|---|
FileClassLoader()
|
Method Summary | |
---|---|
Class |
findClass(String file)
loads a class from the file with the given pathname. |
Methods inherited from class ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileClassLoader()
Method Detail |
---|
public Class findClass(String file) throws ClassNotFoundException
findClass
in class ClassLoader
file
- The pathname where the class can be loaded from.
ClassNotFoundException
- if something goes wrong.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |