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)

العثور على ملف في ذاكرة التخزين المؤقت يتطابق مع المسار ورقم التحقق من صحة الملف

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 صحيح إذا كان ملف التخزين المؤقت متوفّرًا، وخطأ في الحالات الأخرى

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 ()