classpath: Closeable & Flushable

This commit is contained in:
Pierre Carrier
2012-11-04 01:56:06 +01:00
parent 33fed1b710
commit be952acbcb
6 changed files with 36 additions and 4 deletions

View File

@ -10,7 +10,7 @@
package java.io;
public abstract class Writer {
public abstract class Writer implements Closeable, Flushable {
public void write(int c) throws IOException {
char[] buffer = new char[] { (char) c };
write(buffer);