MCPcopy
hub / github.com/google/guava / writeFrom

Method writeFrom

guava/src/com/google/common/io/CharSink.java:167–174  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 3

openStreamMethod · 0.95
copyMethod · 0.95
checkNotNullMethod · 0.45

Tested by

no test coverage detected