From 90bf2e01390bf77c91034dec06a1e6aabd8235ec Mon Sep 17 00:00:00 2001
From: Sebastian Rasmussen <sebras@gmail.com>
Date: Sun, 17 Jul 2016 16:49:34 +0800
Subject: JNI: Extend Buffer interface, especially for reading.

---
 platform/java/src/com/artifex/mupdf/fitz/Buffer.java | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'platform/java/src')

diff --git a/platform/java/src/com/artifex/mupdf/fitz/Buffer.java b/platform/java/src/com/artifex/mupdf/fitz/Buffer.java
index 7f23b062..c98e9985 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/Buffer.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/Buffer.java
@@ -28,8 +28,13 @@ public class Buffer
 	}
 
 	public native int getLength();
+	public native int readByte(int at);
+	public native int readBytes(int at, byte[] bs);
+	public native int readBytesInto(int at, byte[] bs, int off, int len);
+
 	public native void writeByte(byte b);
 	public native void writeBytes(byte[] bs);
+	public native void writeBytesFrom(byte[] bs, int off, int len);
 	public native void writeBuffer(Buffer buf);
 	public native void writeRune(int rune);
 	public native void writeLine(String line);
-- 
cgit v1.2.3