Writes all the text from the given {@link Readable} (such as a {@link Reader}) to this sink. Does not close {@code readable} if it is {@code Closeable}. @return the number of characters written @throws IOException if an I/O error occurs while reading from {@code readable} or writing to this sin
(Readable readable)
| 165 | * this sink |
| 166 | */ |
| 167 | @CanIgnoreReturnValue |
| 168 | public long writeFrom(Readable readable) throws IOException { |
| 169 | checkNotNull(readable); |
| 170 | |
| 171 | try (Writer out = openStream()) { |
| 172 | return CharStreams.copy(readable, out); |
| 173 | } |
| 174 | } |
| 175 | } |
nothing calls this directly
no test coverage detected