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.java28
1 files changed, 0 insertions, 28 deletions
diff --git a/platform/java/com/artifex/mupdf/fitz/Context.java b/platform/java/com/artifex/mupdf/fitz/Context.java
deleted file mode 100644
index 3614e65f..00000000
--- a/platform/java/com/artifex/mupdf/fitz/Context.java
+++ /dev/null
@@ -1,28 +0,0 @@
-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
-{
- private static boolean inited = false;
- private static native int initNative();
-
- public static void init() {
- if (!inited) {
- inited = true;
- System.loadLibrary("mupdf_java");
- if (initNative() < 0)
- throw new RuntimeException("cannot initialize mupdf library");
- }
- }
-
- static { init(); }
-
- // FIXME: We should support the store size being changed dynamically.
- // This requires changes within the MuPDF core.
- //public native static void setStoreSize(long newSize);
-}