what-the-bank/sources/com/kofax/android/abc/content_analytics/MultiExtractionEngine.java

51 lines
1.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.android.abc.content_analytics;
import com.kofax.android.abc.configuration.Configuration;
import com.kofax.android.abc.document.Document;
/* loaded from: classes3.dex */
public class MultiExtractionEngine {
private long m_ptr;
public static native boolean nativeStaticInitializer();
public native long nativeCreate();
public native void nativeDispose();
public native boolean nativeExtract(long j);
public native void nativeInitialize(long j, String str);
static {
if (!nativeStaticInitializer()) {
throw new RuntimeException("com.kofax.android.abc.document.MultiExtractionEngine: Static initializer failed.");
}
}
public MultiExtractionEngine() {
this.m_ptr = nativeCreate();
}
public MultiExtractionEngine(long j) {
this.m_ptr = j;
}
public void dispose() {
nativeDispose();
this.m_ptr = 0L;
}
public void initialize(Configuration configuration, String str) {
nativeInitialize(configuration.getPtr(), str);
}
public boolean extract(Document document) {
return nativeExtract(document.getPtr());
}
public long getPtr() {
return this.m_ptr;
}
}