Class FileCache
- java.lang.Object
-
- org.sonarsource.scanner.api.internal.cache.FileCache
-
public class FileCache extends Object
This class is responsible for managing Sonar batch file cache. You can put file into cache and later try to retrieve them. MD5 is used to differentiate files (name is not secure as files may come from different Sonar servers and have same name but be actually different, and same for SNAPSHOTs).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFileCache.Downloader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Fileget(String filename, String hash)Look for a file in the cache by its filename and md5 checksum.Fileget(String filename, String hash, FileCache.Downloader downloader)FilegetDir()
-
-
-
Method Detail
-
getDir
public File getDir()
-
get
@CheckForNull public File get(String filename, String hash)
Look for a file in the cache by its filename and md5 checksum. If the file is not present then return null.
-
get
public File get(String filename, String hash, FileCache.Downloader downloader)
-
-