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 ()