FileDownloadCacheFactory
public class FileDownloadCacheFactory
extends Object
java.lang.Object | |
↳ | com.android.tradefed.build.FileDownloadCacheFactory |
Eine Factory zum Erstellen FileDownloadCache
Zusammenfassung
Öffentliche Konstrukteure | |
---|---|
FileDownloadCacheFactory () |
Öffentliche Methoden | |
---|---|
FileDownloadCache | getCache (File cacheDir) Rufen Sie den |
static FileDownloadCacheFactory | getInstance () Rufen Sie die Singleton-Instanz von FileDownloadCacheFactory ab |
Öffentliche Konstrukteure
FileDownloadCacheFactory
public FileDownloadCacheFactory ()
Öffentliche Methoden
getCache
public FileDownloadCache getCache (File cacheDir)
Rufen Sie den FileDownloadCache
mit dem angegebenen Cache-Verzeichnis ab und erstellen Sie ihn ggf.
Parameter | |
---|---|
cacheDir | File : das lokale Dateisystemverzeichnis, das als Cache verwendet werden soll |
Kehrt zurück | |
---|---|
FileDownloadCache | der FileDownloadCache für gegebenes cacheDir |
bekomme Instanz
public static FileDownloadCacheFactory getInstance ()
Rufen Sie die Singleton-Instanz von FileDownloadCacheFactory ab
Kehrt zurück | |
---|---|
FileDownloadCacheFactory |