PartialZip다운로드캐시
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 () |
보호된 생성자
PartialZip다운로드캐시
protected PartialZipDownloadCache ()
공개 메소드
getCached파일
public boolean getCachedFile (File targetFile, String fileName, String crc)
경로 및 crc와 일치하는 캐시에서 파일을 찾습니다.
매개변수 | |
---|---|
targetFile | File : 파일을 반환할 위치 |
fileName | String : 파일의 경로 |
crc | String : zip 파일의 체크섬 |
보고 | |
---|---|
boolean | 캐시 파일이 존재하면 참, 그렇지 않으면 거짓 |
채우기캐시파일
public void populateCacheFile (File toCache, String fileName, String crc)
캐시에 파일 채우기
매개변수 | |
---|---|
toCache | File : 캐시에 넣을 파일 |
fileName | String : 파일의 경로 |
crc | String : zip 파일의 crc 체크섬 |
보호된 방법
cleanUpCache
protected void cleanUpCache ()