Reads all characters from a Readable object into a String. Does not close the Readable. @param r the object to read from @return a string containing all the characters @throws IOException if an I/O error occurs
(Readable r)
| 94 | |
| 95 | |
| 96 | public static String toString(Readable r) throws IOException { |
| 97 | return toStringBuilder(r).toString(); |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Reads all characters from a {@link Readable} object into a new {@link StringBuilder} instance. |
no test coverage detected