PartialZipDownloadCache

public class PartialZipDownloadCache
extends Object

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


כלי לשמירת קבצים שהורדו באופן חלקי במטמון על סמך התוכן שלהם. הבדיקה מבוססת על תוכן ה-zip, ולכן היא כוללת crc בחינם מהמטא-נתונים.

סיכום

‫Constructors מוגנים

PartialZipDownloadCache()

‫methods ציבוריים

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

חיפוש קובץ במטמון שתואם לנתיב ול-CRC

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

מילוי הקובץ במטמון

שיטות מוגנות

void cleanUpCache()

‫Constructors מוגנים

PartialZipDownloadCache

protected PartialZipDownloadCache ()

‫methods ציבוריים

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: סכום הבדיקה של ה-CRC של הקובץ ב-zip

שיטות מוגנות

cleanUpCache

protected void cleanUpCache ()