java.lang.Objectjava.lang.ClassLoader
edu.gwu.simplenetsim.FileClassLoader
public class FileClassLoader
The class FileClassLoader contains methods to load classes from given files.
ClassLoader| Constructor Summary | |
|---|---|
FileClassLoader(java.lang.String path)
Creates a new FileClassLoader instance. |
|
| Method Summary | |
|---|---|
java.lang.Class |
loadClass(java.lang.String name,
boolean resolveIt)
The loadClass method loads a class given its name. |
void |
setPath(java.lang.String path)
The setPath method sets the path to the give path. |
| Methods inherited from class java.lang.ClassLoader |
|---|
clearAssertionStatus, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileClassLoader(java.lang.String path)
FileClassLoader instance.
path - the path to the file.| Method Detail |
|---|
public java.lang.Class loadClass(java.lang.String name,
boolean resolveIt)
throws java.lang.ClassNotFoundException
loadClass method loads a class given its name.
loadClass in class java.lang.ClassLoadername - the name of the classresolveIt - if true then the class will be resolved
Class
java.lang.ClassNotFoundException - if an error occurspublic void setPath(java.lang.String path)
setPath method sets the path to the give path.
path - the new path to be set.