Reads all characters from a Readable object into a new StringBuilder instance. Does not close the Readable. @param r the object to read from @return a StringBuilder containing all the characters @throws IOException if an I/O error occurs
(Readable r)
| 102 | * @throws IOException if an I/O error occurs |
| 103 | */ |
| 104 | private static StringBuilder toStringBuilder(Readable r) throws IOException { |
| 105 | StringBuilder sb = new StringBuilder(); |
| 106 | copy(r, sb); |
| 107 | return sb; |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * Reads all of the lines from a {@link Readable} object. The lines do not include |