FlashingResourcesRetrieverCacheWrapper

public class FlashingResourcesRetrieverCacheWrapper
extends Object implements IFlashingResourcesRetriever

java.lang.Object
   ↳ com.google.android.tradefed.targetprep.FlashingResourcesRetrieverCacheWrapper


A IFlashingResourcesRetriever wrapper that use cache.

Summary

Public constructors

FlashingResourcesRetrieverCacheWrapper(File cacheDir, IFlashingResourcesRetriever delegateRetriever)

Public methods

File retrieveFile(String imageName, String version)

Returns the image file with given name and version

Public constructors

FlashingResourcesRetrieverCacheWrapper

public FlashingResourcesRetrieverCacheWrapper (File cacheDir, 
                IFlashingResourcesRetriever delegateRetriever)

Parameters
cacheDir File

delegateRetriever IFlashingResourcesRetriever

Public methods

retrieveFile

public File retrieveFile (String imageName, 
                String version)

Returns the image file with given name and version

Parameters
imageName String: the name of the image (ie radio)

version String: the version of the file to return

Returns
File a temporary local image File

Throws
TargetSetupError