MCPcopy Create free account
hub / github.com/antlr/codebuff / asByteSource

Method asByteSource

corpus/java/training/guava/io/Resources.java:56–58  ·  view source on GitHub ↗

Returns a ByteSource that reads from the given URL. @since 14.0

(URL url)

Source from the content-addressed store, hash-verified

54 * @since 14.0
55 */
56 public static ByteSource asByteSource(URL url) {
57 return new UrlByteSource(url);
58 }
59
60 /**
61 * A byte source that reads from a URL using {@link URL#openStream()}.

Callers 4

asByteSourceMethod · 0.95
asCharSourceMethod · 0.95
toByteArrayMethod · 0.95
copyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected