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)
| 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. |
no test coverage detected