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)
| 295 | |
| 296 | |
| 297 | public static void copy(File from, OutputStream to) throws IOException { |
| 298 | asByteSource(from).copyTo(to); |
| 299 | } |
| 300 | |
| 301 | /** |
| 302 | * Copies all the bytes from one file to another. |
no test coverage detected