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