public class PathClassLoader extends BaseDexClassLoader
ClassLoader implementation that operates on a list
of files and directories in the local file system, but does not attempt to
load classes from the network. Android uses this class for its system class
loader and for its application class loader(s).proxyCache| Constructor and Description |
|---|
PathClassLoader(String dexPath,
ClassLoader parent)
Creates a
PathClassLoader that operates on a given list of files
and directories. |
PathClassLoader(String dexPath,
String libraryPath,
ClassLoader parent)
Creates a
PathClassLoader that operates on two given
lists of files and directories. |
findClass, findLibrary, findResource, findResources, getLdLibraryPath, getPackage, toStringclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLoadedClass, findSystemClass, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic PathClassLoader(String dexPath, ClassLoader parent)
PathClassLoader that operates on a given list of files
and directories. This method is equivalent to calling
PathClassLoader(String, String, ClassLoader) with a
null value for the second argument (see description there).dexPath - the list of jar/apk files containing classes and
resources, delimited by File.pathSeparator, which
defaults to ":" on Androidparent - the parent class loaderpublic PathClassLoader(String dexPath, String libraryPath, ClassLoader parent)
PathClassLoader that operates on two given
lists of files and directories. The entries of the first list
should be one of the following:
dexPath - the list of jar/apk files containing classes and
resources, delimited by File.pathSeparator, which
defaults to ":" on AndroidlibraryPath - the list of directories containing native
libraries, delimited by File.pathSeparator; may be
nullparent - the parent class loader