public static int readFully(Reader reader, char ch[]) throws IOException {
    	return readFully(reader, ch, 0, ch.length);
    }
public static int readFully ( Reader reader , char ch [ ] ) throws IOException { return readFully ( reader , ch , 0 , ch . length ) ; }
Reads data from given reader into specified buffer.<br>
If the given reader doesn't have number of chars equal to the length
of the buffer available, it simply reads only the available number of chars.

@param reader    reader from which data is read
@param ch        the buffer into which the data is read.
@return          the number of chars read. if the reader doen't have enough chars available
to fill the buffer, it returns the the number of chars read
@throws IOException if an I/O error occurs.