/* Copyright (c) 2008, Avian Contributors

   Permission to use, copy, modify, and/or distribute this software
   for any purpose with or without fee is hereby granted, provided
   that the above copyright notice and this permission notice appear
   in all copies.

   There is NO WARRANTY for this software.  See license.txt for
   details. */

package java.io;

public abstract class Reader {
  public int read() throws IOException {
    char[] buffer = new char[1];
    int c = read(buffer);
    if (c <= 0) {
      return -1;
    } else {
      return (int) buffer[0];
    }
  }

  public int read(char[] buffer) throws IOException {
    return read(buffer, 0, buffer.length);
  }

  public abstract int read(char[] buffer, int offset, int length)
    throws IOException;

  public abstract void close() throws IOException;
}

@@ -770,16 +770,290 @@
 ption;%0A%0A
+  public boolean markSupported() %7B%0A    return false;%0A  %7D%0A  %0A  public void mark(int readAheadLimit) throws IOException %7B%0A    throw new IOException(%22mark not supported%22);%0A  %7D%0A  %0A  public void reset() throws IOException %7B%0A    throw new IOException(%22reset not supported%22);%0A  %7D%0A%0A
   public

add Reader.mark/markSupported/reset