@Override public int read(byte[] b) throws IOException { int bytesRead = super.read(b); totalRead += bytesRead; callback.update(totalRead); return bytesRead; }