|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.ClassLoader | +--tyrex.resource.jca.RARClassLoader
Classloader to load classes from jar files embedded in a rar file.
This class is thread-safe because the call to
findClass(String)
is within a synchronized block
(java.lang.ClassLoader.loadClass).
Inner classes inherited from class java.lang.ClassLoader |
java.lang.ClassLoader.Finalizer, java.lang.ClassLoader.NativeLibrary |
Fields inherited from class java.lang.ClassLoader |
nocerts |
Constructor Summary | |
RARClassLoader(java.io.File rarFile,
boolean resolve)
Create the RARClassLoader. |
|
RARClassLoader(java.lang.String rarFile,
boolean resolve)
Create the RARClassLoader. |
Method Summary | |
protected java.lang.Class |
findClass(java.lang.String name)
Finds the specified class. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.ClassLoader |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RARClassLoader(java.io.File rarFile, boolean resolve) throws java.io.FileNotFoundException, java.io.IOException
file
- the file (required)resolve
- True if the jar files are resolved at
creation time. False if jar files are resolved
lazily.java.io.FileNotFoundException
- if the file does not existjava.io.IOException
- if there is a problem reading the rar filejava.lang.IllegalArgumentException
- if the file argument is null.public RARClassLoader(java.lang.String rarFile, boolean resolve) throws java.io.FileNotFoundException, java.io.IOException
file
- the file (required)resolve
- True if the jar files are resolved at
creation time. False if jar files are resolved
lazily.java.io.FileNotFoundException
- if the file does not existjava.io.IOException
- if there is a problem reading the rar filejava.lang.IllegalArgumentException
- if the file argument is null.Method Detail |
protected java.lang.Class findClass(java.lang.String name) throws java.lang.ClassNotFoundException
loadClass
method after checking the parent class
loader for the requested class.This method is not synchronized
because loadClass
is synchronized.findClass
in class java.lang.ClassLoader
name
- the name of the classClass
objectjava.lang.ClassNotFoundException
- if the class could not be
foundpublic static void main(java.lang.String[] args) throws java.lang.Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |