public int read ( CharBuffer buf , int length ) throws IOException { int len = buf . length ( ) ; buf . length ( len + length ) ; int readLength = read ( buf . buffer ( ) , len , length ) ; if ( readLength < 0 ) { buf . length ( len ) ; } else if ( readLength < length ) { buf . length ( len + readLength ) ; } return length ; }
Reads characters from the stream appending to the character buffer .