/guava/android/guava/src/com/google/common/io/CharStreams.java
int total = 0;
long total = 0;
@CanIgnoreReturnValue static long copyReaderToBuilder(Reader from, StringBuilder to) throws IOException { checkNotNull(from); checkNotNull(to); char[] buf = new char[DEFAULT_BUF_SIZE]; int nRead; <extra_id_0> while ((nRead = from.read(buf)) != -1) { to.append(buf, 0, nRead); total += nRead; } return total; }