Skip to main content

FLSX

FLSX

This class allows an application to provide a custom loader for the native library.

Full qualification: com.florentis.signature.FLSX

Summary

Method
setLoader

Methods

setLoader

Sets a custom loader implementation before any Signature object is created.

public static void setLoader(ILoader customLoader)
Parameters
customLoaderThe new loader to use.
Return Value
none
Important Note

You MUST set your own implementation before creating any Signature objects otherwise it will be too late. Note that System.load can only be called once per libname – it is not possible to call this multiple times with different paths. The code is only called when you first create a Signature object. Possible reasons for using this are for using an alternative to system.library.path to locate the DLL, or to even rename it so that you can have both 32-bit and 64-bit DLLs in the same folder.

For example, the following code replicates the default loader from previous and current versions:

com.florentis.signature.FLSX.setLoader(new com.florentis.signature.FLSX.ILoader() { @Override public void
loadLibrary() {
System.loadLibrary("flsx");
}});