From 83d88f1952047d9d99960cc2702b515782744dfb Mon Sep 17 00:00:00 2001
From: Sebastian Rasmussen <sebras@gmail.com>
Date: Mon, 15 Aug 2016 19:17:39 +0800
Subject: JNI: BufferOutputStream should only be used for writing.

---
 .../com/artifex/mupdf/fitz/BufferOutputStream.java | 37 ----------------------
 1 file changed, 37 deletions(-)

(limited to 'platform/java/src')

diff --git a/platform/java/src/com/artifex/mupdf/fitz/BufferOutputStream.java b/platform/java/src/com/artifex/mupdf/fitz/BufferOutputStream.java
index ec87db0c..c802f417 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/BufferOutputStream.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/BufferOutputStream.java
@@ -26,41 +26,4 @@ public class BufferOutputStream extends OutputStream
 	public void write(int b) {
 		buffer.writeByte((byte) b);
 	}
-
-	public int available() {
-		return buffer.getLength();
-	}
-
-	public void mark(int readlimit) {
-		resetPosition = position;
-	}
-
-	public boolean markSupported() {
-		return true;
-	}
-
-	public int read() {
-		return buffer.readByte(position++);
-	}
-
-	public int read(byte[] b) {
-		int n = buffer.readBytes(position, b);
-		position += n;
-		return n;
-	}
-
-	public int read(byte[] b, int off, int len) {
-		int n = buffer.readBytesInto(position, b, off, len);
-		position += n;
-		return n;
-	}
-
-	public void reset() throws IOException {
-		if (resetPosition < 0)
-			throw  new IOException("cannot reset because mark never set");
-		if (resetPosition >= buffer.getLength())
-			throw  new IOException("cannot reset because mark set outside of buffer");
-
-		position = resetPosition;
-	}
 }
-- 
cgit v1.2.3