75 lines
2.0 KiB
Java
75 lines
2.0 KiB
Java
package com.kofax.android.abc.validation;
|
|
|
|
import android.graphics.Bitmap;
|
|
import com.kofax.android.abc.configuration.Configuration;
|
|
import com.kofax.android.abc.document.Document;
|
|
import com.kofax.android.abc.vrs.VrsImage;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class MultiValidationEngine {
|
|
private long m_ptr = nativeCreate();
|
|
|
|
public static native boolean nativeStaticInitializer();
|
|
|
|
public native long nativeCreate();
|
|
|
|
public native void nativeDispose();
|
|
|
|
public native String[] nativeGetInputNames();
|
|
|
|
public native String[] nativeGetOutputNames();
|
|
|
|
public native void nativeInitialize(long j, String str);
|
|
|
|
public native boolean nativeIsValid();
|
|
|
|
public native boolean nativeValidate(long j);
|
|
|
|
public native boolean nativeValidateWithImage(long j, Bitmap bitmap);
|
|
|
|
public native boolean nativeValidateWithVrsImage(long j, long j2);
|
|
|
|
static {
|
|
if (!nativeStaticInitializer()) {
|
|
throw new RuntimeException("com.kofax.android.abc.document.RegexValidationEngine: Static initializer failed.");
|
|
}
|
|
}
|
|
|
|
public void dispose() {
|
|
nativeDispose();
|
|
this.m_ptr = 0L;
|
|
}
|
|
|
|
public void initialize(Configuration configuration, String str) {
|
|
nativeInitialize(configuration.getPtr(), str);
|
|
}
|
|
|
|
public boolean validate(Document document) {
|
|
return nativeValidate(document.getPtr());
|
|
}
|
|
|
|
public boolean validateWithImage(Document document, Bitmap bitmap) {
|
|
return nativeValidateWithImage(document.getPtr(), bitmap);
|
|
}
|
|
|
|
public boolean validateWithImage(Document document, VrsImage vrsImage) {
|
|
return nativeValidateWithVrsImage(document.getPtr(), vrsImage.getPtr());
|
|
}
|
|
|
|
public String[] getInputNames() {
|
|
return nativeGetInputNames();
|
|
}
|
|
|
|
public String[] getOutputNames() {
|
|
return nativeGetOutputNames();
|
|
}
|
|
|
|
public boolean isValid() {
|
|
return nativeIsValid();
|
|
}
|
|
|
|
public long getPtr() {
|
|
return this.m_ptr;
|
|
}
|
|
}
|