PartialZipDownloadCache

public class PartialZipDownloadCache
extends Object

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


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

Özet

Korunan markalar

PartialZipDownloadCache()

Herkese açık yöntemler

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

Yol ve crc ile eşleşen bir dosyayı önbellekte bulur.

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

Dosyayı önbelleğe doldurma

Korunan yöntemler

void cleanUpCache()

Korunan markalar

PartialZipDownloadCache

protected PartialZipDownloadCache ()

Herkese açık yöntemler

getCachedFile

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

Yol ve crc ile eşleşen bir dosyayı önbellekte bulur.

Parametreler
targetFile File: Dosyanın döndürüleceği konum

fileName String: Dosyanın yolu

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

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

getDefaultCache

public static PartialZipDownloadCache getDefaultCache ()

İadeler
PartialZipDownloadCache

populateCacheFile

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

Dosyayı önbelleğe doldurma

Parametreler
toCache File: Önbelleğe konulacak dosya

fileName String: Dosyanın yolu

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

Korunan yöntemler

cleanUpCache

protected void cleanUpCache ()