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