MCPcopy Create free account
hub / github.com/antlr/codebuff / copy

Method copy

corpus/java/training/guava/io/Resources.java:174–176  ·  view source on GitHub ↗

Copies all bytes from a URL to an output stream. @param from the URL to read from @param to the output stream @throws IOException if an I/O error occurs

(URL from, OutputStream to)

Source from the content-addressed store, hash-verified

172 * @throws IOException if an I/O error occurs
173 */
174 public static void copy(URL from, OutputStream to) throws IOException {
175 asByteSource(from).copyTo(to);
176 }
177
178 /**
179 * Returns a {@code URL} pointing to {@code resourceName} if the resource is found using the

Callers

nothing calls this directly

Calls 2

asByteSourceMethod · 0.95
copyToMethod · 0.45

Tested by

no test coverage detected