public class PathClassLoader extends URLClassLoader
| Constructor and Description |
|---|
PathClassLoader(String path)
Create a class loader that loads classes from the given path.
|
PathClassLoader(String path,
ClassLoader parent)
Create a class loader that loads classes from the given path.
|
| Modifier and Type | Method and Description |
|---|---|
static String[] |
convertPathToFilenames(String path)
Returns an array of filenames (including path).
|
(package private) static String[] |
convertPathToFilenames(String path,
String seps) |
static File[] |
convertPathToFiles(String path,
String seps)
Convert the given path string into an array of File.
|
String |
getClassPath() |
(package private) static URL[] |
getURLs(String p,
String separators)
Returns an array of URLs based on the given classpath string.
|
protected Class |
loadClass(String name,
boolean resolve) |
String |
toString() |
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic PathClassLoader(String path)
public PathClassLoader(String path, ClassLoader parent)
public String getClassPath()
protected Class loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionstatic URL[] getURLs(String p, String separators)
public static String[] convertPathToFilenames(String path)
public static File[] convertPathToFiles(String path, String seps)
Abbot is hosted on