KısmiZipİndirmeÖnbelleği

public class PartialZipDownloadCache
extends Object

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


Kısmi indirilen dosyaları içeriklerine göre önbelleğe alma yardımcı programı. Bu, zip içeriğine dayalı olduğundan meta verilerden ücretsiz olarak crc içerir.

Özet

Korumalı kurucular

PartialZipDownloadCache ()

Genel 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ı önbellekte doldurun

Korumalı yöntemler

void cleanUpCache ()

Korumalı kurucular

KısmiZipİndirmeÖnbelleği

protected PartialZipDownloadCache ()

Genel 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 döndürüleceği konum

fileName String : Dosyanın yolu

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

İadeler
boolean Önbellek dosyası mevcutsa doğru, aksi halde yanlış

getDefaultCache

public static PartialZipDownloadCache getDefaultCache ()

İadeler
PartialZipDownloadCache

Önbellek Dosyasını Doldur

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

Dosyayı önbellekte doldurun

Parametreler
toCache File : Önbelleğe alınacak dosya

fileName String : dosyanın yolu

crc String : Zip dosyasındaki dosyanın crc sağlama toplamı

Korumalı yöntemler

cleanUpCache

protected void cleanUpCache ()