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

Method write

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

Overwrites a file with the contents of a byte array. @param from the bytes to write @param to the destination file @throws IOException if an I/O error occurs

(byte[] from, File to)

Source from the content-addressed store, hash-verified

270 * @throws IOException if an I/O error occurs
271 */
272 public static void write(byte[] from, File to) throws IOException {
273 asByteSink(to).write(from);
274 }
275
276 /**
277 * Copies all bytes from a file to an output stream.

Callers 1

appendMethod · 0.95

Calls 4

asByteSinkMethod · 0.95
asCharSinkMethod · 0.95
modesMethod · 0.95
writeMethod · 0.65

Tested by

no test coverage detected