summaryrefslogtreecommitdiff
path: root/platform/java/src/com/artifex
diff options
context:
space:
mode:
Diffstat (limited to 'platform/java/src/com/artifex')
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/PDFObject.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/platform/java/src/com/artifex/mupdf/fitz/PDFObject.java b/platform/java/src/com/artifex/mupdf/fitz/PDFObject.java
index 90575582..a099b438 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/PDFObject.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/PDFObject.java
@@ -47,6 +47,28 @@ public class PDFObject
public native byte[] readStream();
public native byte[] readRawStream();
+ public native void writeObject(PDFObject obj);
+ private native void writeStreamBuffer(Buffer buf);
+ private native void writeStreamString(String str);
+ private native void writeRawStreamBuffer(Buffer buf);
+ private native void writeRawStreamString(String str);
+
+ public void writeStream(Buffer buf) {
+ writeStreamBuffer(buf);
+ }
+
+ public void writeStream(String str) {
+ writeStreamString(str);
+ }
+
+ public void writeRawStream(Buffer buf) {
+ writeRawStreamBuffer(buf);
+ }
+
+ public void writeRawStream(String str) {
+ writeRawStreamString(str);
+ }
+
private native PDFObject getArray(int index);
private native PDFObject getDictionary(String name);