what-the-bank/sources/com/kofax/android/abc/configuration/Configuration.java

86 lines
2.0 KiB
Java

package com.kofax.android.abc.configuration;
import java.util.ArrayList;
/* loaded from: classes3.dex */
public class Configuration {
private long m_ptr;
public static native boolean nativeStaticInitializer();
public native long nativeCreate();
public native void nativeDispose();
public native String nativeGetStringValue(String str);
public native ArrayList<String> nativeGetStringValues(String str);
public native void nativeLoadFromFile(String str);
public native void nativeLoadFromString(String str);
public native void nativeSaveToFile(String str);
public native String nativeSaveToString();
public native void nativeSetBoolValue(String str, boolean z);
public native void nativeSetStringValue(String str, String str2);
static {
if (!nativeStaticInitializer()) {
throw new RuntimeException("com.kofax.android.abc.document.Configuration: Static initializer failed.");
}
}
public Configuration() {
this.m_ptr = nativeCreate();
}
public Configuration(long j) {
this.m_ptr = j;
}
public void dispose() {
nativeDispose();
this.m_ptr = 0L;
}
public void loadFromFile(String str) {
nativeLoadFromFile(str);
}
public void loadFromString(String str) {
nativeLoadFromString(str);
}
public void saveToFile(String str) {
nativeSaveToFile(str);
}
public String saveToString() {
return nativeSaveToString();
}
public void setStringValue(String str, String str2) {
nativeSetStringValue(str, str2);
}
public void setBoolValue(String str, boolean z) {
nativeSetBoolValue(str, z);
}
public String getStringValue(String str) {
return nativeGetStringValue(str);
}
public ArrayList<String> getStringValues(String str) {
return nativeGetStringValues(str);
}
public long getPtr() {
return this.m_ptr;
}
}