PartialZipDownloadCache

public class PartialZipDownloadCache
extends Object

java.lang.オブジェクト
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

キャッシュファイルを設定する

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

ファイルをキャッシュに追加します

パラメーター
toCache File : キャッシュに入れるファイル

fileName String : ファイルのパス

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

保護されたメソッド

クリーンアップキャッシュ

protected void cleanUpCache ()