if (throttler != null) {
throttler.throttle((long) buffSize);
}
int bytesRead = in.read(buf);
while (bytesRead >= 0) {
sum.update(buf, 0, bytesRead);
out.write(buf, 0, bytesRead);
if ((ps != null) && ps.checkError()) {
throw new IOException("Unable to write to output stream.");
}
if (throttler != null) {