76 lines
1.7 KiB
Java
76 lines
1.7 KiB
Java
|
package com.kofax.android.abc.document;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public class Page {
|
||
|
private boolean m_owner;
|
||
|
private long m_ptr;
|
||
|
|
||
|
public static native boolean nativeStaticInitializer();
|
||
|
|
||
|
public native long nativeCreate();
|
||
|
|
||
|
public native long nativeCreateCopy(long j);
|
||
|
|
||
|
public native void nativeDispose();
|
||
|
|
||
|
public native int nativeGetHeight();
|
||
|
|
||
|
public native String nativeGetPageImageFileName();
|
||
|
|
||
|
public native int nativeGetPageIndex();
|
||
|
|
||
|
public native int nativeGetWidth();
|
||
|
|
||
|
public native void nativeSetPageImageFileName(String str);
|
||
|
|
||
|
static {
|
||
|
if (!nativeStaticInitializer()) {
|
||
|
throw new RuntimeException("com.kofax.android.abc.document.Page: Static initializer failed.");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public Page() {
|
||
|
this.m_ptr = nativeCreate();
|
||
|
this.m_owner = true;
|
||
|
}
|
||
|
|
||
|
public Page(long j, boolean z) {
|
||
|
if (j == 0) {
|
||
|
throw new IllegalArgumentException("com.kofax.android.abc.document.Page: ptr value cannot be null.");
|
||
|
}
|
||
|
this.m_ptr = z ? nativeCreateCopy(j) : j;
|
||
|
this.m_owner = z;
|
||
|
}
|
||
|
|
||
|
public void dispose() {
|
||
|
if (this.m_owner) {
|
||
|
nativeDispose();
|
||
|
this.m_ptr = 0L;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public int getPageIndex() {
|
||
|
return nativeGetPageIndex();
|
||
|
}
|
||
|
|
||
|
public int getWidth() {
|
||
|
return nativeGetWidth();
|
||
|
}
|
||
|
|
||
|
public int getHeight() {
|
||
|
return nativeGetHeight();
|
||
|
}
|
||
|
|
||
|
public void setPageImageFileName(String str) {
|
||
|
nativeSetPageImageFileName(str);
|
||
|
}
|
||
|
|
||
|
public String getPageImageFileName() {
|
||
|
return nativeGetPageImageFileName();
|
||
|
}
|
||
|
|
||
|
public long getPtr() {
|
||
|
return this.m_ptr;
|
||
|
}
|
||
|
}
|