what-the-bank/sources/com/kofax/android/abc/document/Serializer.java

31 lines
981 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.android.abc.document;
import com.kofax.android.abc.sqlite.SQLiteWrapper;
/* loaded from: classes3.dex */
public class Serializer {
public native long deserializeDb(long j, String str, long j2);
public native long deserializeString(String str);
public native void serializeDb(String str, long j, long j2, long j3);
public native String serializeString(long j);
public String serialize(Document document) {
return serializeString(document.getPtr());
}
public Document deserialize(String str) {
return new Document(deserializeString(str), false, true);
}
public void serialize(Document document, SQLiteWrapper sQLiteWrapper, String str, long j) {
serializeDb(str, document.getPtr(), sQLiteWrapper.getPtr(), j);
}
public Document deserialize(SQLiteWrapper sQLiteWrapper, String str, long j) {
return new Document(deserializeDb(sQLiteWrapper.getPtr(), str, j), false, true);
}
}