Copies all bytes from a file to an output stream. @param from the source file @param to the output stream @throws IOException if an I/O error occurs
(File from, OutputStream to)
| 281 | * @throws IOException if an I/O error occurs |
| 282 | */ |
| 283 | public static void copy(File from, OutputStream to) throws IOException { |
| 284 | asByteSource(from).copyTo(to); |
| 285 | } |
| 286 | |
| 287 | /** |
| 288 | * Copies all the bytes from one file to another. |
no test coverage detected