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)
| 107 | */ |
| 108 | |
| 109 | private static StringBuilder toStringBuilder(Readable r) throws IOException { |
| 110 | StringBuilder sb = new StringBuilder(); |
| 111 | copy(r, sb); |
| 112 | return sb; |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Reads all of the lines from a {@link Readable} object. The lines do not include |