|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.fractal.juliak.platform.PlatformJSE
public class PlatformJSE
This class contains the implementation of the PlatformItf
interface
for the Java SE platform.
Constructor Summary | |
---|---|
PlatformJSE()
|
Method Summary | |
---|---|
Class |
defineClass(String name,
byte[] b)
Define a new class. |
void |
dumpClassToFile(String dirname,
String classname,
byte[] b)
Utility method to write the bytecode from a class to a file. |
Object |
getLoader()
Return the loader used by Juliak for loading classes. |
InputStream |
getResourceAsStream(String name)
Load a ressource. |
Class |
loadClass(String name)
Load a class. |
void |
setLoader(Object cl)
Set the loader to be used by Juliak for loading classes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlatformJSE()
Method Detail |
---|
public void setLoader(Object cl)
setLoader
in interface PlatformItf
cl
- the loader.
This parameter must implement ClassLoader. It is declared as an
Object in order to be compliant with the Java ME CLDC version of
Juliak.public Object getLoader()
getLoader
in interface PlatformItf
public Class loadClass(String name) throws ClassNotFoundException
loadClass
in interface PlatformItf
ClassNotFoundException
public InputStream getResourceAsStream(String name)
getResourceAsStream
in interface PlatformItf
public Class defineClass(String name, byte[] b)
defineClass
in interface PlatformItf
public void dumpClassToFile(String dirname, String classname, byte[] b) throws IOException
dumpClassToFile
in interface PlatformItf
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 |