Index: . =================================================================== --- . (revision 391) +++ . (working copy) @@ -70,4 +70,26 @@ captureStream.write(b, off, len); passThroughStream.write(b, off, len); } + + /** + * Flushes both the output streams. + * + * @throws IOException + */ + public void flush() throws IOException { + captureStream.flush(); //why not? + passThroughStream.flush(); + + } + + /** + * Closes both the output streams. + * + * @throws IOException + */ + public void close() throws IOException { + captureStream.close(); + passThroughStream.close(); + + } }