From 3a2a46499eb4af32052d75a6b33e3ef9660ae3a9 Mon Sep 17 00:00:00 2001 From: Joel Dice <joel.dice@gmail.com> Date: Thu, 20 Jan 2011 09:34:46 -0700 Subject: [PATCH] add Reader.mark/markSupported/reset --- classpath/java/io/Reader.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/classpath/java/io/Reader.java b/classpath/java/io/Reader.java index acbf42ffd2..a09c8a24e9 100644 --- a/classpath/java/io/Reader.java +++ b/classpath/java/io/Reader.java @@ -28,5 +28,17 @@ public abstract class Reader { public abstract int read(char[] buffer, int offset, int length) throws IOException; + public boolean markSupported() { + return false; + } + + public void mark(int readAheadLimit) throws IOException { + throw new IOException("mark not supported"); + } + + public void reset() throws IOException { + throw new IOException("reset not supported"); + } + public abstract void close() throws IOException; }