public class FileCache extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
FileCache.Downloader |
Modifier and Type | Method and Description |
---|---|
static FileCache |
create(File dir,
Log log) |
File |
get(String filename,
String hash)
Look for a file in the cache by its filename and md5 checksum.
|
File |
get(String filename,
String hash,
FileCache.Downloader downloader) |
File |
getDir() |
File |
unzip(File cachedFile)
Unzip a cached file.
|
@CheckForNull public File get(String filename, String hash)
public File get(String filename, String hash, FileCache.Downloader downloader)
public File unzip(File cachedFile) throws IOException
cachedFile
- IOException
Copyright © 2009–2015 SonarSource. All rights reserved.