public class Res extends Object
| 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) |
static Res |
from(String filename) |
static Res |
from(String shortName,
boolean withDefaults,
String... filenames) |
byte[] |
getBytes() |
byte[] |
getBytesOrNull() |
String |
getContent() |
Reader |
getReader() |
String |
getShortName() |
protected byte[] |
load(String filename) |
protected void |
loadResource() |
void |
mustExist() |
Res |
onChange(Runnable listener) |
Res |
onChange(String name,
Runnable listener) |
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 getShortName()
public Reader getReader()
public void mustExist()
public Res trackChanges()
public <T> T attachment()
public void attach(Object attachment)
Copyright © 2014–2015 Nikolche Mihajlovski and contributors. All rights reserved.