@Beta public final class UrlResource extends ResourceBase
Constructor and Description |
---|
UrlResource(ResourceKey key,
URL url) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
ByteSource |
getBytes() |
long |
getSize() |
long |
getTimestamp() |
URL |
getUrl() |
getKey, handleError, openReader, openStream, readBytes, readLines, readString, requireExists
public UrlResource(ResourceKey key, URL url)
public URL getUrl()
public boolean exists()
public long getSize()
public long getTimestamp()
public ByteSource getBytes()