public class PathLoader extends Loader implements Dependency
| Constructor and Description |
|---|
PathLoader()
Creates a new directory loader.
|
| Modifier and Type | Method and Description |
|---|---|
protected ClassEntry |
getClassEntry(java.lang.String name,
java.lang.String pathName)
Returns the class entry.
|
Path |
getCodePath() |
Path |
getPath(java.lang.String pathName)
Find a given path somewhere in the classpath
|
void |
getResources(java.util.Vector<java.net.URL> vector,
java.lang.String name)
Adds resources to the enumeration.
|
void |
init()
Initialize
|
boolean |
isModified()
Returns the modified
|
boolean |
logModified(java.util.logging.Logger log)
Returns the modified
|
void |
put(java.lang.String name,
Path path)
Adds a new path.
|
java.lang.String |
toString() |
buildClassPath, buildSourcePath, destroy, getClassLoader, getCodeSource, getHashCrc, getResource, getResourceAsStream, isDirectoryLoader, loadClass, lookupPath, setLoader, validatepublic boolean isModified()
isModified in interface Dependencypublic boolean logModified(java.util.logging.Logger log)
logModified in interface Dependencypublic void put(java.lang.String name,
Path path)
protected ClassEntry getClassEntry(java.lang.String name, java.lang.String pathName) throws java.lang.ClassNotFoundException
getClassEntry in class Loadername - name of the classjava.lang.ClassNotFoundExceptionpublic void getResources(java.util.Vector<java.net.URL> vector,
java.lang.String name)
getResources in class Loadername - name of the resourcepublic Path getPath(java.lang.String pathName)
public Path getCodePath()
public java.lang.String toString()
toString in class java.lang.Object