|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jniwrapper.util.AppletHelper
public class AppletHelper
This class is helper for Java applets that use JNIWrapper library.
You can call native functions from dll libraries after start of JNIWrapper library.
Constructor Summary | |
---|---|
protected |
AppletHelper()
|
Method Summary | |
---|---|
static AppletHelper |
getInstance()
|
void |
init(java.applet.Applet applet)
Initializes native code integration for applets. |
void |
init(java.net.URL nativeLibUrl)
Downloads and installs the native code library to the client's computer. |
void |
loadLibrary(java.applet.Applet applet,
java.lang.String libraryName)
This method provides the ability to load and install a custom library (which is used by the specified applet) to the client side. |
protected static void |
setInstance(AppletHelper instance)
|
void |
start()
Starts native resource collector. |
void |
stop()
Stops native resource collector. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AppletHelper()
Method Detail |
---|
public static AppletHelper getInstance()
protected static void setInstance(AppletHelper instance)
public void init(java.applet.Applet applet) throws java.io.IOException
init()
method of the applet that uses JNIWrapper.
Note: This method assumes that the native code library is places into the same code base location with the applet.
applet
- an applet instance.
java.io.IOException
public void init(java.net.URL nativeLibUrl) throws java.io.IOException
init()
method of your applet.
This method must be called before invoking any other methods of JNIWrapper classes.
nativeLibUrl
- url of the native code library.
java.io.IOException
public void start()
start()
method of the applet that uses jniwrapper.
This method must be called before using any other JNIWrapper classes.
public void stop()
stop()
method of the applet that uses jniwrapper.
This method must be called when no native resources are going to be allocated by the applet.
public void loadLibrary(java.applet.Applet applet, java.lang.String libraryName) throws java.io.IOException
applet
- an applet that uses the specified librarylibraryName
- a library name to install to the client side
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |