/** * tells listener the stream is complete */ public void close() throws IOException { super.close(); listener.setStreamClosed(); }
/** * updates listener when required */ public int read() throws IOException { //by doing this before we're out by one byte... this might be bad... if ((bytesRead % interval) == 0) { listener.setStreamProgress(bytesRead); } return super.read(); }
/** * updates listener when required */ public int read() throws IOException { //by doing this before we're out by one byte... this might be bad... if ((bytesRead % interval) == 0) { listener.setStreamProgress(bytesRead); } return super.read(); }
/** * tells listener the stream is complete */ public void close() throws IOException { super.close(); listener.setStreamClosed(); }