| Constructor and Description |
|---|
FileResource(ResourceKey key,
File file) |
| 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 FileResource(ResourceKey key, File file)
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