Stay organized with collections
Save and categorize content based on your preferences.
PartialZipDownloadCache
public
class
PartialZipDownloadCache
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.build.cache.PartialZipDownloadCache
|
Utility to cache partial download files based on their content. This is based of the zip content
so it includes crc for free from the metadata.
Summary
Protected constructors
PartialZipDownloadCache
protected PartialZipDownloadCache ()
Public methods
getCachedFile
public boolean getCachedFile (File targetFile,
String fileName,
String crc)
Finds a file in the cache matching the path and crc
Parameters |
targetFile |
File : location where to return the file |
fileName |
String : Path of file |
crc |
String : checksum of file in zip |
Returns |
boolean |
True if cache file exists, false otherwise |
populateCacheFile
public void populateCacheFile (File toCache,
String fileName,
String crc)
Populate the file in the cache
Parameters |
toCache |
File : File to put in cache |
fileName |
String : the path of the file |
crc |
String : The crc checksum of file in zip |
Protected methods
cleanUpCache
protected void cleanUpCache ()
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-07-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-07-19 UTC."],[],[]]