/** * tells listener the stream is complete */ public void close() throws IOException { super.close(); listener.setStreamClosed(); }
/** * increments bytesWritten and writes byte to wrapped out */ public void write(int b) throws IOException { super.write(b); if ((bytesWritten % interval) == 0) { listener.setStreamProgress(bytesWritten); } }
/** * increments bytesWritten and writes byte to wrapped out */ public void write(int b) throws IOException { super.write(b); if ((bytesWritten % interval) == 0) { listener.setStreamProgress(bytesWritten); } }
/** * tells listener the stream is complete */ public void close() throws IOException { super.close(); listener.setStreamClosed(); }