Package com.mchange.v3.filecache
Class FileCache
java.lang.Object
com.mchange.v3.filecache.FileCache
-
Constructor Summary
ConstructorDescriptionFileCache
(File cacheDir, int buffer_size, boolean read_only, URLFetcher... fetchers) FileCache
(File cacheDir, int buffer_size, boolean read_only, List<URLFetcher> fetchers) -
Method Summary
Modifier and TypeMethodDescriptionint
int
countCached
(FileFilter filter) void
ensureCached
(FileCacheKey key, boolean force_reacquire) fetch
(FileCacheKey key, boolean force_reacquire) fileForKey
(FileCacheKey key) boolean
isCached
(FileCacheKey key)
-
Constructor Details
-
FileCache
- Throws:
IOException
-
FileCache
public FileCache(File cacheDir, int buffer_size, boolean read_only, URLFetcher... fetchers) throws IOException - Throws:
IOException
-
FileCache
public FileCache(File cacheDir, int buffer_size, boolean read_only, List<URLFetcher> fetchers) throws IOException - Throws:
IOException
-
-
Method Details
-
ensureCached
- Throws:
IOException
-
fetch
- Throws:
IOException
-
isCached
- Throws:
IOException
-
countCached
- Throws:
IOException
-
countCached
- Throws:
IOException
-
fileForKey
-