summaryrefslogtreecommitdiff
path: root/platform/java/com/artifex/mupdf/fitz/Context.java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/java/com/artifex/mupdf/fitz/Context.java')
-rw-r--r--platform/java/com/artifex/mupdf/fitz/Context.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/platform/java/com/artifex/mupdf/fitz/Context.java b/platform/java/com/artifex/mupdf/fitz/Context.java
new file mode 100644
index 00000000..1baafb01
--- /dev/null
+++ b/platform/java/com/artifex/mupdf/fitz/Context.java
@@ -0,0 +1,20 @@
+package com.artifex.mupdf.fitz;
+
+// This class handles the loading of the MuPDF shared library, together
+// with the ThreadLocal magic to get the required context.
+//
+// The only publicly accessible method here is Context.setStoreSize, which
+// sets the store size to use. This must be called before any other MuPDF
+// function.
+public class Context
+{
+ // Load our native library
+ static
+ {
+ System.loadLibrary("mupdf");
+ }
+
+ // FIXME: We should support the store size being changed dynamically.
+ // This requires changes within the MuPDF core.
+ //public native static void setStoreSize(long newSize);
+}