Merge pull request #96 from dscho/filter-input-stream

Filter input stream
This commit is contained in:
Joshua Warner 2013-11-06 09:02:57 -08:00
commit 42651da0b2

View File

@ -0,0 +1,35 @@
/* 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 class FilterInputStream extends InputStream {
protected InputStream in;
public FilterInputStream(InputStream in) {
this.in = in;
}
public void close() throws IOException {
in.close();
}
public int read(byte[] b) throws IOException {
return in.read(b);
}
public int read(byte[] b, int off, int len) throws IOException {
return in.read(b, off, len);
}
public int read() throws IOException {
return in.read();
}
}