PartialZipDownloadCache
public class PartialZipDownloadCache
extends Object
java.lang.Object | |
↳ | com.android.tradefed.build.cache.PartialZipDownloadCache |
Utilitário para armazenar arquivos de download parciais com base em seu conteúdo. Isso é baseado no conteúdo zip, portanto inclui crc gratuitamente nos metadados.
Resumo
Construtores protegidos | |
---|---|
PartialZipDownloadCache () |
Métodos públicos | |
---|---|
boolean | getCachedFile (File targetFile, String fileName, String crc) Localiza um arquivo no cache correspondente ao caminho e crc |
static PartialZipDownloadCache | getDefaultCache () |
void | populateCacheFile (File toCache, String fileName, String crc) Preencha o arquivo no cache |
Métodos protegidos | |
---|---|
void | cleanUpCache () |
Construtores protegidos
PartialZipDownloadCache
protected PartialZipDownloadCache ()
Métodos públicos
getCachedFile
public boolean getCachedFile (File targetFile, String fileName, String crc)
Localiza um arquivo no cache correspondente ao caminho e crc
Parâmetros | |
---|---|
targetFile | File : local para onde retornar o arquivo |
fileName | String : caminho do arquivo |
crc | String : soma de verificação do arquivo no zip |
devoluções | |
---|---|
boolean | Verdadeiro se o arquivo de cache existir, falso caso contrário |
getDefaultCache
public static PartialZipDownloadCache getDefaultCache ()
devoluções | |
---|---|
PartialZipDownloadCache |
populateCacheFile
public void populateCacheFile (File toCache, String fileName, String crc)
Preencha o arquivo no cache
Parâmetros | |
---|---|
toCache | File : Arquivo para colocar no cache |
fileName | String : o caminho do arquivo |
crc | String : a soma de verificação crc do arquivo no zip |
Métodos protegidos
cleanUpCache
protected void cleanUpCache ()