|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader ca.spaz.util.Loader
public final class Loader
A special class for loading classes from an jar file.
Constructor Summary | |
---|---|
Loader(java.io.File file)
|
Method Summary | |
---|---|
protected java.lang.Class |
loadClass(java.lang.String name,
boolean resolve)
Load a class by name. |
javax.swing.ImageIcon |
loadImageIcon(java.lang.String name)
|
java.lang.Object |
newInstance(java.lang.String name)
Create a new instance of a class in this jar file. |
Methods inherited from class java.lang.ClassLoader |
---|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Loader(java.io.File file)
Method Detail |
---|
public java.lang.Object newInstance(java.lang.String name)
name
- the class name to instantiate
protected java.lang.Class loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
java.lang.ClassLoader#loadClass()
public javax.swing.ImageIcon loadImageIcon(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |