FileDownloadCacheFactory
  public
  
  
  
  class
  FileDownloadCacheFactory
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.build.FileDownloadCacheFactory | 
A factory for creating FileDownloadCache
Summary
| Public constructors | |
|---|---|
| 
      FileDownloadCacheFactory()
       | |
| Public methods | |
|---|---|
| 
        
        
        
        
        
        FileDownloadCache | 
      getCache(File cacheDir)
      Retrieve the  | 
| 
        
        
        static
        
        
        FileDownloadCacheFactory | 
      getInstance()
      Get the singleton instance of FileDownloadCacheFactory | 
Public constructors
FileDownloadCacheFactory
public FileDownloadCacheFactory ()
Public methods
getCache
public FileDownloadCache getCache (File cacheDir)
Retrieve the FileDownloadCache with the given cache directory, creating if necessary.
 
| Parameters | |
|---|---|
| cacheDir | File: the local filesystem directory to use as a cache | 
| Returns | |
|---|---|
| FileDownloadCache | the FileDownloadCachefor given cacheDir | 
getInstance
public static FileDownloadCacheFactory getInstance ()
Get the singleton instance of FileDownloadCacheFactory
| Returns | |
|---|---|
| FileDownloadCacheFactory | |
