1 package net.sourceforge.phpdt.internal.corext.phpdoc;
4 * (c) Copyright IBM Corp. 2000, 2001.
8 import java.io.IOException;
11 public abstract class SingleCharReader extends Reader {
16 public abstract int read() throws IOException;
19 * @see Reader#read(char[],int,int)
21 public int read(char cbuf[], int off, int len) throws IOException {
23 for (int i= off; i < end; i++) {
40 public boolean ready() throws IOException {
45 * Gets the content as a String
47 public String getString() throws IOException {
48 StringBuffer buf= new StringBuffer();
50 while ((ch= read()) != -1) {
53 return buf.toString();