|
|
|
|
81
|
byte[] bytes = new byte[(int) byteCount];
|
81
|
byte[] bytes = new byte[(int) byteCount];
|
82
|
long read = originalBody.byteStream().read(bytes, 0, (int) byteCount);
|
82
|
long read = originalBody.byteStream().read(bytes, 0, (int) byteCount);
|
83
|
bytesDownloaded += read > 0 ? read : 0;
|
83
|
bytesDownloaded += read > 0 ? read : 0;
|
84
|
- Log.i("bytes downloaded", String.valueOf(byteCount) + "/" + String.valueOf(read) + "=" + String.valueOf(bytesDownloaded));
|
|
|
85
|
if (read > 0) {
|
84
|
if (read > 0) {
|
86
|
ofStream.write(bytes, 0, (int) read);
|
85
|
ofStream.write(bytes, 0, (int) read);
|
87
|
}
|
86
|
}
|