newIOBuffer.writeBytes("Content-Range: ".getBytes());
newIOBuffer.writeBytes(("bytes " + p.getStart() + "-" + p.getEnd()
+ "/" + rangeContentLength).getBytes());
newIOBuffer.writeBytes("\r\n\r\n".getBytes());
}
newIOBuffer.transfer(iobuffer, transfer);
rangeCurrentPos += transfer;
len -= transfer;
}
// Advance to the next range if we completed the current one.
if (rangeCurrentPos == (p.getEnd() + 1)) {