public final class ResourceMapper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResourceMapper.Retreiver
A class that will perform copy operation in a thread.
|
Modifier and Type | Field and Description |
---|---|
static ModuleContext |
mc
ModuleContext to enable logging. |
Modifier and Type | Method and Description |
---|---|
static String |
cached(String cacheFolder,
String url)
Utility method: it will first
search(String) for
the url. |
static String |
cached(String cacheFolder,
URL resource)
Utility method: it will look for the resource in the cache, if it not
available it will copy it there.
|
static URL |
search(String url)
Searches for the specified url in the config directory and JAR resources.
|
public static ModuleContext mc
ModuleContext
to enable logging.public static String cached(String cacheFolder, String url)
search(String)
for
the url. Then it will look for it in the cache, if it not available it
will copy it there. Returns the cache location.cacheFolder
- the location of the cache folder.url
- the file to cachepublic static String cached(String cacheFolder, URL resource)
cacheFolder
- the location of the cache folder.resource
- the file to cacheCopyright © 2018 universAAL Consortium. All rights reserved.