/** * Reads all characters from the supplied reader and returns them as a * String. * * @param r * The Reader supplying the characters * @return A String containing all characters from the supplied reader. */ public static String readString(Reader r) throws IOException { return readFully(r).toString(); }
/** * Reads all characters from the supplied reader and returns them. * * @param r * The Reader supplying the characters * @return A character array containing all characters from the supplied * reader. */ public static char[] readChars(Reader r) throws IOException { return readFully(r).toCharArray(); }