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)

パスと 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 キャッシュ ファイルが存在する場合は true、存在しない場合は false

getDefaultCache

public static PartialZipDownloadCache getDefaultCache ()

戻り値
PartialZipDownloadCache

populateCacheFile

public void populateCacheFile (File toCache, 
                String fileName, 
                String crc)

キャッシュにファイルを入力する

パラメータ
toCache File: キャッシュに保存するファイル

fileName String: ファイルのパス

crc String: zip 内のファイルの CRC チェックサム

保護されたメソッド

cleanUpCache

protected void cleanUpCache ()