Package skyview.survey
Class Cacher
java.lang.Object
skyview.survey.Cacher
This class handles interactions with the file cache.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncacheRemoteURL
(String url, String cacheFile) Read a URL into the cache and return the full path to the cached file.getCachedFileName
(String file) See if there is a file in the cache that is of the approprite name.If we are divvying the cache by surveys, find the appropriate name for the current survey subdirectory.Find the name of the write cache directory and if necessary create it
-
Constructor Details
-
Cacher
public Cacher()
-
-
Method Details
-
getSurveySubdir
If we are divvying the cache by surveys, find the appropriate name for the current survey subdirectory.- Returns:
- The escaped name of the survey.
-
getCachedFileName
See if there is a file in the cache that is of the approprite name.- Parameters:
file
-- Returns:
- The full path to the file.
-
getWriteCache
Find the name of the write cache directory and if necessary create it -
cacheRemoteURL
Read a URL into the cache and return the full path to the cached file.- Throws:
Exception
-
getFile
- Throws:
Exception
-