summaryrefslogtreecommitdiff
path: root/platform/java/src/com/artifex/mupdf/fitz/Buffer.java
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-07-17 16:49:34 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-07-17 22:33:52 +0800
commit90bf2e01390bf77c91034dec06a1e6aabd8235ec (patch)
tree58f2a241b314e4b77968f9bc2c296a83de1971ae /platform/java/src/com/artifex/mupdf/fitz/Buffer.java
parent8625af9d32111e555eef595d6fcca739b0249253 (diff)
downloadmupdf-90bf2e01390bf77c91034dec06a1e6aabd8235ec.tar.xz
JNI: Extend Buffer interface, especially for reading.
Diffstat (limited to 'platform/java/src/com/artifex/mupdf/fitz/Buffer.java')
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/Buffer.java5
1 files changed, 5 insertions, 0 deletions
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);