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

Method copy

android/guava/src/com/google/common/io/Files.java:300–302  ·  view source on GitHub ↗

Copies all bytes from a file to an output stream. <p><b>{@link java.nio.file.Path} equivalent:</b> {@link java.nio.file.Files#copy(java.nio.file.Path, OutputStream)}. @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

298 * @throws IOException if an I/O error occurs
299 */
300 public static void copy(File from, OutputStream to) throws IOException {
301 asByteSource(from).copyTo(to);
302 }
303
304 /**
305 * Copies all the bytes from one file to another.

Callers 12

moveMethod · 0.95
makeJarUrlWithNameMethod · 0.95
testEqualMethod · 0.95
testCopyToAppendableMethod · 0.95
testCopyFileMethod · 0.95
testCopyEqualFilesMethod · 0.95
testCopySameFileMethod · 0.95
testEqualMethod · 0.95
testMoveMethod · 0.95
testMoveViaCopyMethod · 0.95

Calls 6

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

Tested by 21

makeJarUrlWithNameMethod · 0.76
testEqualMethod · 0.76
testCopyToAppendableMethod · 0.76
testCopyFileMethod · 0.76
testCopyEqualFilesMethod · 0.76
testCopySameFileMethod · 0.76
testEqualMethod · 0.76
testMoveMethod · 0.76
makeJarUrlWithNameMethod · 0.76
testEqualMethod · 0.76