Copies all bytes from a URL to an output stream. @param from the URL to read from @param to the output stream @throws IOException if an I/O error occurs
(URL from, OutputStream to)
| 169 | * @throws IOException if an I/O error occurs |
| 170 | */ |
| 171 | public static void copy(URL from, OutputStream to) throws IOException { |
| 172 | asByteSource(from).copyTo(to); |
| 173 | } |
| 174 | |
| 175 | /** |
| 176 | * Returns a {@code URL} pointing to {@code resourceName} if the resource is found using the |