PartialZipDownloadCache
public class PartialZipDownloadCache
extends Object
java.lang.Objek | |
↳ | com.android.tradefed.build.cache.PartialZipDownloadCache |
Utilitas untuk menyimpan sebagian file unduhan berdasarkan kontennya. Ini didasarkan pada konten zip sehingga menyertakan crc gratis dari metadata.
Ringkasan
Konstruktor yang dilindungi | |
---|---|
PartialZipDownloadCache () |
Metode publik | |
---|---|
boolean | getCachedFile (File targetFile, String fileName, String crc) Menemukan file di cache yang cocok dengan jalur dan crc |
static PartialZipDownloadCache | getDefaultCache () |
void | populateCacheFile (File toCache, String fileName, String crc) Isi file di cache |
Metode yang dilindungi | |
---|---|
void | cleanUpCache () |
Konstruktor yang dilindungi
PartialZipDownloadCache
protected PartialZipDownloadCache ()
Metode publik
dapatkan File Cached
public boolean getCachedFile (File targetFile, String fileName, String crc)
Menemukan file di cache yang cocok dengan jalur dan crc
Parameter | |
---|---|
targetFile | File : lokasi dimana file akan dikembalikan |
fileName | String : Jalur file |
crc | String : checksum file dalam zip |
Kembali | |
---|---|
boolean | Benar jika file cache ada, salah jika sebaliknya |
dapatkanDefaultCache
public static PartialZipDownloadCache getDefaultCache ()
Kembali | |
---|---|
PartialZipDownloadCache |
populateCacheFile
public void populateCacheFile (File toCache, String fileName, String crc)
Isi file di cache
Parameter | |
---|---|
toCache | File : File untuk dimasukkan ke dalam cache |
fileName | String : jalur file |
crc | String : Checksum crc file dalam zip |
Metode yang dilindungi
bersihkanCache
protected void cleanUpCache ()