Method
writeBytes
(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; |
Tested by
no test coverage detected