PartialZipDownloadCache

public class PartialZipDownloadCache
extends Object

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


Utilitaire pour mettre en cache les fichiers de téléchargement partiel en fonction de leur contenu. Ceci est basé sur le contenu du zip et inclut donc gratuitement le crc à partir des métadonnées.

Résumé

Constructeurs protégés

PartialZipDownloadCache ()

Méthodes publiques

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

Trouve un fichier dans le cache correspondant au chemin et au crc

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

Remplir le fichier dans le cache

Méthodes protégées

void cleanUpCache ()

Constructeurs protégés

PartialZipDownloadCache

protected PartialZipDownloadCache ()

Méthodes publiques

getCachedFile

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

Trouve un fichier dans le cache correspondant au chemin et au crc

Paramètres
targetFile File : emplacement où retourner le fichier

fileName String : Chemin du fichier

crc String : somme de contrôle du fichier dans le zip

Retour
boolean Vrai si le fichier cache existe, faux sinon

getDefaultCache

public static PartialZipDownloadCache getDefaultCache ()

Retour
PartialZipDownloadCache

remplir le fichier cache

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

Remplir le fichier dans le cache

Paramètres
toCache File : Fichier à mettre en cache

fileName String : le chemin du fichier

crc String : La somme de contrôle crc du fichier dans zip

Méthodes protégées

nettoyageCache

protected void cleanUpCache ()