|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.aokell.lib.util.PlatformHelper
public class PlatformHelper
This class contains helper methods with an implementation which differs depending on the choosen version of the platform feature.
Constructor Summary | |
---|---|
PlatformHelper()
|
Method Summary | |
---|---|
static Class |
defineClass(String name,
byte[] b)
Define a new class. |
static void |
dumpClassToFile(String dirname,
String classname,
byte[] b)
Utility method to write the bytecode from a class to a file. |
static InputStream |
getResourceAsStream(String name)
Load a ressource. |
static Class |
loadClass(String name)
Load a class. |
static void |
setLoader(Object cl)
Set the loader to be used by AOKell for loading classes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlatformHelper()
Method Detail |
---|
public static void setLoader(Object cl)
cl
- the loader.
This parameter must implement ClassLoader. It is declared as an
Object in order to be compliant with the J2ME version of AOKell.public static Class loadClass(String name) throws ClassNotFoundException
ClassNotFoundException
public static InputStream getResourceAsStream(String name)
public static Class defineClass(String name, byte[] b)
public static void dumpClassToFile(String dirname, String classname, byte[] b) throws IOException
dirname
- the root directory nameclassname
- the name of the classb
- the bytecode
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |