MCPcopy Index your code
hub / github.com/antlr/codebuff / toByteArray

Method toByteArray

output/java_guava/1.4.16/Resources.java:103–105  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

101
102
103 public static byte[] toByteArray(URL url) throws IOException {
104 return asByteSource(url).read();
105 }
106
107 /**
108 * Reads all characters from a URL into a {@link String}, using the given character set.

Callers

nothing calls this directly

Calls 2

asByteSourceMethod · 0.95
readMethod · 0.45

Tested by

no test coverage detected