📄 javatobiokey.java
字号:
package zk.jni;
/************************************************
JavaToBiokey
JNI 接口对象
2008.11 By sky
fingerprinter@126.com
If you needs the tec please conn mb:13598873075 Li
*************************************************/
public class JavaToBiokey{
//DLL库函数接口
public native boolean NativeToProcess(String ARegTemplate, String AVerTemplate);
public native void NativeToSetThreshold(int AThreshold, int AOneToOneThreshold);
public native void NativeTest(int i, String str);
//调用库函数接口,确认参数有效
public boolean ToProcess(String ARegTemplate, String AVerTemplate)
{
try
{
// System.out.println("调用比对指纹函数!");
//System.out.println(NativeToProcess(ARegTemplate, AVerTemplate));
return NativeToProcess(ARegTemplate, AVerTemplate);
}catch(Exception e)
{
return false;
}
}
public void ToSetThreshold(int AThreshold, int AOneToOneThreshold)
{
try
{
NativeToSetThreshold(AThreshold, AOneToOneThreshold);
}catch(Exception e)
{
;
}
}
public void NativeTest1(int i, String str)
{
try
{
NativeTest(i, str);
}catch(Exception e)
{
;
}
}
static
{
//加载动态库
System.loadLibrary("matchdll"); //
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -