com.dctl.j2me.system
Class DynamicClassLoader
java.lang.Object
|
+--com.dctl.j2me.system.ClassLoader
|
+--com.dctl.j2me.system.DynamicClassLoader
- Direct Known Subclasses:
- HttpClassLoader, JarFileClassLoader
- public abstract class DynamicClassLoader
- extends ClassLoader
Base class for all dynamic class loaders
|
Method Summary |
protected abstract byte[] |
getClassFileData(java.lang.String className)
Get the data for the class file |
Class |
loadClass(java.lang.String name)
Load the class file. |
DynamicClassLoader
public DynamicClassLoader()
getClassFileData
protected abstract byte[] getClassFileData(java.lang.String className)
throws ClassNotFoundException
- Get the data for the class file
- Parameters:
className - The name of the class
- Returns:
- the byte array containing data for the class
- Throws:
ClassNotFoundException - If the class cannot be found
loadClass
public Class loadClass(java.lang.String name)
throws ClassNotFoundException
- Load the class file.
- Overrides:
loadClass in class ClassLoader
- Parameters:
name - The name of the class to load
- Returns:
- the class
- Throws:
ClassNotFoundException - if the class could not be loaded from the source
DCT Lightfoot v3 API specification