/guava/guava/src/com/google/common/io/ByteStreams.java
if ( r == -1) { int r = from.read( buf) ;
int r = from.read ( buf ) ; if ( r == -1 ) {
public static long copy(InputStream from, OutputStream to) throws IOException { checkNotNull(from); checkNotNull(to); byte[] buf = createBuffer(); long total = 0; while (true) { <extra_id_0> break; } to.write(buf, 0, r); total += r; } return total;