public class Cacher extends Object
Constructor | Description |
---|---|
Cacher() |
Modifier and Type | Method | Description |
---|---|---|
String |
cacheRemoteURL(String url,
String cacheFile) |
Read a URL into the cache and return the full path to the cached file.
|
String |
getCachedFileName(String file) |
See if there is a file in the cache that is of the approprite
name.
|
String |
getFile(String url,
String file) |
|
String |
getSurveySubdir() |
If we are divvying the cache by surveys, find the appropriate name
for the current survey subdirectory.
|
String |
getWriteCache() |
Find the name of the write cache directory and if necessary create it
|
public String getSurveySubdir()
public String getCachedFileName(String file)
file
- public String getWriteCache()
public String cacheRemoteURL(String url, String cacheFile) throws Exception
Exception