Package smile.util
Interface CacheFiles
public interface CacheFiles
Static methods that manage cache files.
-
Method Details
-
dir
Returns the cache directory path.- Returns:
- the cache directory path.
-
download
Downloads a file and save to the cache directory.- Parameters:
url
- the url of online file.- Returns:
- the path to the cache file.
- Throws:
IOException
- if fail to download the file.URISyntaxException
- if url is invalid.
-
download
Downloads a file and save to the cache directory.- Parameters:
url
- the url of online file.force
- flag indicating if download even when cache file exists.- Returns:
- the path to the cache file.
- Throws:
IOException
- if fail to download the file.URISyntaxException
- if url is invalid.
-
clean
Cleans up the cache directory.- Throws:
IOException
- if fail to delete the cache files.
-