public static String readString(URL url) throws IOException { Reader reader = urlToReader(url); try { return readString(reader); } finally { reader.close(); } }
public static char[] readChars(URL url) throws IOException { Reader reader = urlToReader(url); try { return readChars(reader); } finally { reader.close(); } }