MCPcopy
hub / github.com/google/guava / asByteSource

Method asByteSource

android/guava/src/com/google/common/io/Resources.java:54–56  ·  view source on GitHub ↗

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

(URL url)

Source from the content-addressed store, hash-verified

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

Callers 5

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

Calls

no outgoing calls

Tested by 1

createSourceMethod · 0.76