public static String getText ( URL url , String charset ) throws IOException { BufferedReader reader = newReader ( url , charset ) ; return IOGroovyMethods . getText ( reader ) ; }
Read the data from this URL and return it as a String . The connection stream is closed before this method returns .