我正在使用AsynkTast下载一组CSV行,并希望跟踪总共读取的字节数.
while ((string = bufferedReader.readLine()) != null)
{
bytesRead += ?;
}
我如何访问行总字节数?
我很抱歉,如果这个问题是重复的,但我似乎只能找到答案与OutputStream相关的问题.
最佳答案 尝试:
while ((string = br.readLine()) != null)
{
bytesRead += (string.getBytes().length);
}