/guava/android/guava/src/com/google/common/io/ReaderInputStream.java
if ( endOfInput) {
if ( draining ) {
return 0; } int totalBytesRead = 0; boolean doneEncoding = endOfInput; DRAINING: while (true) { <extra_id_0> totalBytesRead += drain(b, off + totalBytesRead, len - totalBytesRead); if (totalBytesRead == len || doneFlushing) { return (totalBytesRead > 0) ? totalBytesRead : -1; } draining = false; Java8Compatibility.clear(byteBuffer);