@Authors(value="Nikolche Mihajlovski") @Since(value="4.1.0") public class Res extends RapidoidThing
| Modifier and Type | Field and Description |
|---|---|
static ScheduledThreadPoolExecutor |
EXECUTOR |
| Modifier and Type | Method and Description |
|---|---|
void |
attach(Object attachment) |
<T> T |
attachment() |
boolean |
exists() |
static Res |
from(File file,
String... possibleLocations) |
static Res |
from(String filename,
String... possibleLocations) |
byte[] |
getBytes() |
byte[] |
getBytesOrNull() |
String |
getCachedFileName() |
String |
getContent() |
String |
getName() |
Reader |
getReader() |
void |
invalidate() |
protected byte[] |
load(String filename) |
protected void |
loadResource() |
Res |
mustExist() |
Res |
onChange(String name,
Runnable listener) |
Res |
removeChangeListener(String name) |
static void |
reset() |
static String |
root() |
static void |
root(String root) |
String |
toString() |
Res |
trackChanges() |
public static final ScheduledThreadPoolExecutor EXECUTOR
public byte[] getBytes()
public byte[] getBytesOrNull()
protected void loadResource()
protected byte[] load(String filename)
public String getContent()
public boolean exists()
public String getName()
public Reader getReader()
public Res mustExist()
public Res trackChanges()
public <T> T attachment()
public void attach(Object attachment)
public String getCachedFileName()
public static void reset()
public void invalidate()
public static String root()
public static void root(String root)
Copyright © 2014–2016 Nikolche Mihajlovski and contributors. All rights reserved.