| Modifier and Type | Field and Description |
|---|---|
static ScheduledThreadPoolExecutor |
EXECUTOR |
static Pattern |
REGEX_INVALID_FILENAME |
| 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() |
boolean |
isHidden() |
protected byte[] |
load(String filename) |
protected void |
loadResource() |
Res |
mustExist() |
Res |
onChange(String name,
Runnable listener) |
Res |
removeChangeListener(String name) |
static void |
reset() |
String |
toString() |
Res |
trackChanges() |
public static volatile Pattern REGEX_INVALID_FILENAME
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 boolean isHidden()
Copyright © 2014–2018 Nikolche Mihajlovski and contributors. All rights reserved.