diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-07-17 16:49:34 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-07-17 22:33:52 +0800 |
commit | 90bf2e01390bf77c91034dec06a1e6aabd8235ec (patch) | |
tree | 58f2a241b314e4b77968f9bc2c296a83de1971ae /platform/java/src/com | |
parent | 8625af9d32111e555eef595d6fcca739b0249253 (diff) | |
download | mupdf-90bf2e01390bf77c91034dec06a1e6aabd8235ec.tar.xz |
JNI: Extend Buffer interface, especially for reading.
Diffstat (limited to 'platform/java/src/com')
-rw-r--r-- | platform/java/src/com/artifex/mupdf/fitz/Buffer.java | 5 |
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); |