PartialZipDownloadCache

public class PartialZipDownloadCache
extends Object

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


यह सुविधा, कॉन्टेंट के आधार पर डाउनलोड की गई फ़ाइलों को कैश मेमोरी में सेव करती है. यह ज़िप कॉन्टेंट पर आधारित है, इसलिए इसमें मेटाडेटा से मुफ़्त में सीआरसी शामिल होता है.

खास जानकारी

सुरक्षित कंस्ट्रक्टर

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)

कैश में मौजूद, पाथ और सीआरसी से मैच होने वाली फ़ाइल ढूंढता है

पैरामीटर
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: ज़िप में मौजूद फ़ाइल का सीआरसी चेकसम

सुरक्षित तरीके

cleanUpCache

protected void cleanUpCache ()