MCPcopy Create free account
hub / github.com/SeanDragon/protools / writeBytes

Method writeBytes

common/src/main/java/pro/tools/path/ToolPath.java:219–222  ·  view source on GitHub ↗
(Path path, byte[] bytes, boolean append)

Source from the content-addressed store, hash-verified

217 }
218
219 public static Path writeBytes(Path path, byte[] bytes, boolean append) throws IOException {
220 OpenOption[] options = append ? WRITE_CREATE_APPEND : WRITE_CREATE;
221 return Files.write(path, bytes, options);
222 }
223
224 public static OutputStream writeOutputStream(Path path, boolean append) throws IOException {
225 OpenOption[] options = append ? WRITE_CREATE_APPEND : WRITE_CREATE;

Callers 1

execCmdMethod · 0.80

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected