Reader and Writer are abstract classes. GWT tests work now. Yay!

This commit is contained in:
Michael Bayne
2011-10-29 15:50:41 -07:00
parent 407d999836
commit d51cd7e08a
4 changed files with 6 additions and 6 deletions
@@ -6,7 +6,7 @@ package java.io;
/** /**
* A minimal version of {@code Reader} to satisfy GWT. * A minimal version of {@code Reader} to satisfy GWT.
*/ */
public interface Reader public abstract class Reader
{ {
int read () throws IOException; public abstract int read () throws IOException;
} }
@@ -6,7 +6,7 @@ package java.io;
/** /**
* A basic implementation of {@code StringReader} for use in GWT. * A basic implementation of {@code StringReader} for use in GWT.
*/ */
public class StringReader implements Reader public class StringReader extends Reader
{ {
public StringReader (String data) { public StringReader (String data) {
_data = data; _data = data;
@@ -6,7 +6,7 @@ package java.io;
/** /**
* A basic implementation of {@code StringReader} for use in GWT. * A basic implementation of {@code StringReader} for use in GWT.
*/ */
public class StringWriter implements Writer public class StringWriter extends Writer
{ {
public void write (String text) throws IOException { public void write (String text) throws IOException {
_buf.append(text); _buf.append(text);
@@ -6,7 +6,7 @@ package java.io;
/** /**
* A minimal version of {@code Writer} to satisfy GWT. * A minimal version of {@code Writer} to satisfy GWT.
*/ */
public interface Writer public abstract class Writer
{ {
void write (String text) throws IOException; public abstract void write (String text) throws IOException;
} }