Kısmi ZipDownloadCache

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 almak için yardımcı program. Bu, zip içeriğini temel alır, bu nedenle meta verilerden ücretsiz olarak crc içerir.

Özet

Korumalı oluşturucular

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ı önbelleğe doldur

Korumalı yöntemler

void cleanUpCache ()

Korumalı oluşturucular

Kısmi ZipDownloadCache

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ı varsa doğru, aksi takdirde yanlış

getDefaultCache

public static PartialZipDownloadCache getDefaultCache ()

İadeler
PartialZipDownloadCache

önbellek dosyasını doldur

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

Dosyayı önbelleğe doldur

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

fileName String : dosyanın yolu

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

Korumalı yöntemler

Önbelleği temizle

protected void cleanUpCache ()