public static String reader2String(Reader source) throws IOException {
		char[] cbuf = new char[65535];
		StringBuffer stringbuf = new StringBuffer();

		int count = 0;
		while ((count = source.read(cbuf, 0, 65535)) != -1) {
			stringbuf.append(cbuf, 0, count);
		}

		return stringbuf.toString();
	}
public static String reader2String ( Reader source ) throws IOException { char [ ] cbuf = new char [ 65535 ] ; StringBuffer stringbuf = new StringBuffer ( ) ; int count = 0 ; while ( ( count = source . read ( cbuf , 0 , 65535 ) ) != - 1 ) { stringbuf . append ( cbuf , 0 , count ) ; } return stringbuf . toString ( ) ; }
Reader 2 string.

@param source the source
@return the string
@throws IOException Signals that an I/O exception has occurred.