public interface Resource
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
com.google.common.io.ByteSource |
getBytes() |
ResourceKey |
getKey() |
long |
getSize() |
long |
getTimestamp() |
URL |
getUrl() |
Reader |
openReader() |
InputStream |
openStream() |
byte[] |
readBytes() |
List<String> |
readLines() |
String |
readString() |
void |
requireExists() |
ResourceKey getKey()
URL getUrl()
void requireExists()
boolean exists()
long getSize()
long getTimestamp()
InputStream openStream()
Reader openReader()
String readString()
byte[] readBytes()
com.google.common.io.ByteSource getBytes()