PartialZipDownloadCache

public class PartialZipDownloadCache
extends Object

java.lang.Object
   ↳ com.android.tradefed.build.cache.PartialZipDownloadCache


Kısmi indirilen dosyaları içeriklerine göre önbelleğe alan yardımcı program. Bu, zip içeriğine dayanır. Bu nedenle, meta verilerden ücretsiz olarak crc içerir.

Özet

Korunan kurucular

PartialZipDownloadCache()

Herkese açık yöntemler

boolean getCachedFile(File targetFile, String fileName, String crc)

Önbellekte, yol ve CRC ile eşleşen bir dosya bulur

static PartialZipDownloadCache getDefaultCache()
void populateCacheFile(File toCache, String fileName, String crc)

Dosyayı önbelleğe doldurma

Korunan yöntemler

void cleanUpCache()

Korunan kurucular

PartialZipDownloadCache

protected PartialZipDownloadCache ()

Herkese açık yöntemler

getCachedFile

public boolean getCachedFile (File targetFile, 
                String fileName, 
                String crc)

Önbellekte, yol ve CRC ile eşleşen bir dosya bulur

Parametreler
targetFile File: Dosyanın iade edileceği konum

fileName String: Dosyanın yolu

crc String: zip'deki dosyanın sağlama toplamı

İlerlemeler
boolean Önbellek dosyası varsa doğru, aksi takdirde yanlış değerini döndürür.

getDefaultCache

public static PartialZipDownloadCache getDefaultCache ()

İlerlemeler
PartialZipDownloadCache

populateCacheFile

public void populateCacheFile (File toCache, 
                String fileName, 
                String crc)

Dosyayı önbelleğe doldurma

Parametreler
toCache File: Önbelleğe yerleştirilecek dosya

fileName String: Dosyanın yolu

crc String: Zip'teki dosyanın crc sağlama toplamı

Korunan yöntemler

cleanUpCache

protected void cleanUpCache ()