in report-builder/src/jetbrains/coverage/report/impl/IOUtil.java [117:126]
public static int copyStreamContent(InputStream inputStream, OutputStream outputStream) throws IOException {
final byte[] buffer = new byte[10 * 1024];
int count;
int total = 0;
while ((count = inputStream.read(buffer)) > 0) {
outputStream.write(buffer, 0, count);
total += count;
}
return total;
}