question: protected static int readFully ( Reader reader , char [ ] buf , int length ) throws IOException { int numCharsRead = 0 ; while ( numCharsRead < length ) { int count = reader . read ( buf , numCharsRead , length - numCharsRead ) ; if ( count < 0 ) { break ; } numCharsRead += count ; } return numCharsRead ; }
target:  Reads length bytes from reader into buf. Blocks until enough input is available