CIB ocr technical manual (EN)

12. JNI Interface

CIB ocr also provides a JNI Interface.

In order to utilize the JNI Interface the three java classes are necessary:
CibOcr.java, CibOcrConstants.java, CibOcrJNI.java

CibOcrJNI.java contains the following methods:

public final static native int CibOcrJobCreate(long[] jarg1);
public final static native int CibOcrJobStart(long jarg1);
public final static native int CibOcrJobCancel(long jarg1);
public final static native int CibOcrJobReset(long jarg1);
public final static native int CibOcrJobFree(long[] jarg1);
public final static native int CibOcrJobGetProperty(long jarg1, String jarg2, byte[] jarg3);
public final static native int CibOcrJobSetProperty(long jarg1, String jarg2, String jarg3);
public final static native int CibOcrJobGetProgress(long jarg1, byte[] jarg2);
public final static native int CibOcrGetVersion(long[] jarg1);
public final static native int CibOcrGetVersionText(byte[] jarg1);
public final static native int CibOcrJobGetError(long jarg1, int[] jarg2);
public final static native int CibOcrJobGetErrorText(long jarg1, byte[] jarg2);

 

The Methods mentioned above are almost identical to the ones mentioned in c++ (section 9.1) However only the Properties that accept wide characters (for example CibOcrGetVersionTextW) are called within the JNI Interface.