Implement FilterReader

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin 2013-10-29 10:19:46 -05:00
parent 2904dd738e
commit f2dd4add26

View File

@ -0,0 +1,51 @@
/* Copyright (c) 2008-2013, 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 FilterReader extends Reader {
protected Reader in;
protected FilterReader(Reader in) {
this.in = in;
}
public int read() throws IOException {
return in.read();
}
public int read(char[] buffer, int offset, int length) throws IOException {
return in.read(buffer, offset, length);
}
public boolean ready() throws IOException {
throw new UnsupportedOperationException();
}
public long skip(long n) throws IOException {
throw new UnsupportedOperationException();
}
public void close() throws IOException {
in.close();
}
public boolean markSupported() {
return in.markSupported();
}
public void mark(int readAheadLimit) throws IOException {
in.mark(readAheadLimit);
}
public void reset() throws IOException {
in.reset();
}
}