Reads all bytes from a URL into a byte array. @param url the URL to read from @return a byte array containing all the bytes from the URL @throws IOException if an I/O error occurs
(URL url)
| 96 | * @throws IOException if an I/O error occurs |
| 97 | */ |
| 98 | public static byte[] toByteArray(URL url) throws IOException { |
| 99 | return asByteSource(url).read(); |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Reads all characters from a URL into a {@link String}, using the given character set. |
nothing calls this directly
no test coverage detected