public static String getContent ( Reader in ) throws IOException { try { StringWriter sw = new StringWriter ( ) ; copy ( in , sw ) ; return sw . toString ( ) ; } finally { in . close ( ) ; } }
Returns the content of the specified reader . The reader will be closed after calling this method .