/guava/guava/src/com/google/common/io/CharStreams.java
} Java8Compatibility.clear( buf) ;total += buf.remaining( ) ;
total += buf.remaining ( ) ; Java8Compatibility.clear ( buf ) ; }
checkNotNull(to); long total = 0; CharBuffer buf = createBuffer(); while (from.read(buf) != -1) { Java8Compatibility.flip(buf); to.append(buf); <extra_id_0> return total; } @CanIgnoreReturnValue static long copyReaderToBuilder(Reader from, StringBuilder to) throws IOException { checkNotNull(from); checkNotNull(to);