Returns a {@link ByteSource} that reads from the given URL. @since 14.0
(URL url)
| 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 { |
no outgoing calls