|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader com.croftsoft.core.lang.classloader.CustomClassLoader com.croftsoft.core.lang.classloader.NetClassLoader com.croftsoft.core.lang.classloader.CacheClassLoader
public class CacheClassLoader
Field Summary | |
---|---|
protected File |
cacheDir
|
protected Hashtable |
cacheHashtable
A list of pathnames of cached files keyed by remote URL name. |
Fields inherited from class com.croftsoft.core.lang.classloader.NetClassLoader |
---|
codebaseURL |
Constructor Summary | |
---|---|
CacheClassLoader(URL codebaseURL,
File cacheDir)
Ex: "http://www.mysticmayhem.com/lib/", "C:\jcache\www.mysticmayhem.com\" |
Method Summary | |
---|---|
InputStream |
getResourceAsStream(String name)
Loads a stream from the URL given by getResource(name). |
static void |
launchMain(String codebaseURLName,
String mainClassName,
String cacheDirName,
String[] args)
Loads a remote class and launches its main() method. |
static void |
main(String[] args)
Loads a remote class and launches its main() method. |
Methods inherited from class com.croftsoft.core.lang.classloader.NetClassLoader |
---|
createImage, getResource, invokeMain, launchMain, loadClassData |
Methods inherited from class com.croftsoft.core.lang.classloader.CustomClassLoader |
---|
loadClass, parsePackageName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Hashtable cacheHashtable
protected File cacheDir
Constructor Detail |
---|
public CacheClassLoader(URL codebaseURL, File cacheDir)
Method Detail |
---|
public static void main(String[] args) throws Exception
Command-line
- arguments:
Exception
public static void launchMain(String codebaseURLName, String mainClassName, String cacheDirName, String[] args) throws ClassNotFoundException, IllegalAccessException, MalformedURLException
ClassNotFoundException
IllegalAccessException
MalformedURLException
public InputStream getResourceAsStream(String name)
NetClassLoader
getResourceAsStream
in class NetClassLoader
|
CroftSoft Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |