Implement available()
@@ -25,6 +25,11 @@ public TeeInputStream(InputStream input, OutputStream output)
this.output = output;
}
+ public int available() throws IOException
+ {
+ return input.available();
+ }
+
public int read(byte[] buf)
throws IOException
{
