| Constructor and Description |
|---|
UrlResource(ResourceKey key,
URL url) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists() |
ResourceKey |
getKey() |
long |
getSize() |
long |
getTimestamp() |
URL |
getUrl() |
Readable |
openReader() |
InputStream |
openStream() |
byte[] |
readBytes() |
List<String> |
readLines() |
String |
readString() |
void |
requireExists() |
public UrlResource(ResourceKey key, URL url)
public ResourceKey getKey()
public void requireExists()
requireExists in interface Resourcepublic long getTimestamp()
getTimestamp in interface Resourcepublic InputStream openStream()
openStream in interface Resourcepublic Readable openReader()
openReader in interface Resourcepublic String readString()
readString in interface Resource