|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.ClassLoader | +--laur.tools.JarClassLoader
This class implements a simple class loader that can be used to load at runtime classes contained in a JAR file.
Constructor Summary | |
JarClassLoader(java.lang.String jarFileName)
Creates a new JarClassLoader that will allow the loading of classes stored in a jar file. |
Method Summary | |
java.lang.Class |
findClass(java.lang.String className)
Looks among the contents of the jar file (cached in memory) and tries to find and define a class, given its name. |
Methods inherited from class java.lang.ClassLoader |
defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JarClassLoader(java.lang.String jarFileName) throws java.io.IOException
jarFileName
- the name of the jar filejava.io.IOException
- an error happened while reading
the contents of the jar fileMethod Detail |
public java.lang.Class findClass(java.lang.String className) throws java.lang.ClassNotFoundException
findClass
in class java.lang.ClassLoader
className
- the name of the classjava.lang.ClassNotFoundException
- the jar file did not contain
a class named className
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |