public class ResourceLoader extends Loader
Constructor and Description |
---|
ResourceLoader()
Null constructor for the resource loader.
|
ResourceLoader(java.lang.ClassLoader loader) |
ResourceLoader(DynamicClassLoader loader,
Path path)
Creates the resource loader with the specified path.
|
Modifier and Type | Method and Description |
---|---|
protected ClassEntry |
getClassEntry(java.lang.String name,
java.lang.String pathName)
The class entry is always null.
|
Path |
getPath()
Gets the resource path.
|
Path |
getPath(java.lang.String name)
Given a class or resource name, returns a patch to that resource.
|
void |
setPath(Path path)
Sets the resource directory.
|
java.lang.String |
toString()
Returns a printable representation of the loader.
|
buildClassPath, buildSourcePath, destroy, getClassLoader, getCodeSource, getHashCrc, getResource, getResourceAsStream, getResources, init, isDirectoryLoader, loadClass, lookupPath, setLoader, validate
public ResourceLoader()
public ResourceLoader(java.lang.ClassLoader loader)
public ResourceLoader(DynamicClassLoader loader, Path path)
path
- specifying the root of the resourcespublic void setPath(Path path)
public Path getPath()
public Path getPath(java.lang.String name)
protected ClassEntry getClassEntry(java.lang.String name, java.lang.String pathName) throws java.lang.ClassNotFoundException
getClassEntry
in class Loader
name
- name of the classjava.lang.ClassNotFoundException
public java.lang.String toString()
toString
in class java.lang.Object