PartialZipDownloadCache

public class PartialZipDownloadCache
extends Object

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


這項公用程式會根據內容快取部分下載檔案,這是根據 ZIP 內容而定,因此包含來自中繼資料的免費 CRC。

摘要

受保護的建構函式

PartialZipDownloadCache()

公用方法

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

在快取中尋找與路徑和 crc 相符的檔案

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

在快取中填入檔案

受保護的方法

void cleanUpCache()

受保護的建構函式

PartialZipDownloadCache

protected PartialZipDownloadCache ()

公用方法

getCachedFile

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

在快取中尋找與路徑和 crc 相符的檔案

參數
targetFile File:檔案的回傳位置

fileName String:檔案路徑

crc String:ZIP 檔案中檔案的總和檢查碼

傳回
boolean 如果快取檔案存在,則為 True,否則為 False

getDefaultCache

public static PartialZipDownloadCache getDefaultCache ()

傳回
PartialZipDownloadCache

populateCacheFile

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

在快取中填入檔案

參數
toCache File:要放入快取的檔案

fileName String:檔案路徑

crc String:ZIP 檔案中檔案的 CRC 總和檢查碼

受保護的方法

cleanUpCache

protected void cleanUpCache ()