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

Method copy

corpus/java/training/guava/io/Files.java:283–285  ·  view source on GitHub ↗

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

(File from, OutputStream to)

Source from the content-addressed store, hash-verified

281 * @throws IOException if an I/O error occurs
282 */
283 public static void copy(File from, OutputStream to) throws IOException {
284 asByteSource(from).copyTo(to);
285 }
286
287 /**
288 * Copies all the bytes from one file to another.

Callers 1

moveMethod · 0.95

Calls 6

asByteSourceMethod · 0.95
asByteSinkMethod · 0.95
asCharSourceMethod · 0.95
equalsMethod · 0.65
copyToMethod · 0.45
checkArgumentMethod · 0.45

Tested by

no test coverage detected