2026년부터 트렁크 안정 개발 모델과 일치하고 생태계의 플랫폼 안정성을 보장하기 위해 2분기와 4분기에 AOSP에 소스 코드를 게시합니다. AOSP를 빌드하고 기여하려면 android-latest-release를 사용하세요. android-latest-release 매니페스트 브랜치는 항상 AOSP에 푸시된 최신 버전을 참조합니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
FileDownloadCacheWrapper
public
class
FileDownloadCacheWrapper
extends Object
implements
IFileDownloader
| java.lang.Object
|
| ↳ |
com.android.tradefed.build.FileDownloadCacheWrapper
|
IFileDownloader 인터페이스를 구현하면서 FileDownloadCache 기능을 제공하는 래퍼 클래스입니다.
호출자로부터 캐시 사용을 추상화하려는 경우에 유용합니다.
요약
공개 메서드 |
void
|
downloadFile(String remoteFilePath, File destFile)
호출자가 원격 콘텐츠를 배치해야 하는 대상 파일을 지정할 수 있는 downloadFile(String)의 대체 양식입니다.
|
File
|
downloadFile(String remoteFilePath)
원격 파일을 로컬 디스크의 임시 파일로 다운로드합니다.
|
void
|
downloadZippedFiles(File destDir, String remoteFilePath, List<String> includeFilters, List<String> excludeFilters)
원격 ZIP 파일에서 지정된 필터와 일치하는 파일을 다운로드합니다.
|
boolean
|
isFresh(File localFile, String remoteFilePath)
로컬 파일의 최신 상태를 확인합니다.
|
공개 생성자
FileDownloadCacheWrapper
public FileDownloadCacheWrapper (File cacheDir,
IFileDownloader delegateDownloader)
| 매개변수 |
cacheDir |
File |
delegateDownloader |
IFileDownloader |
공개 메서드
downloadFile
public void downloadFile (String remoteFilePath,
File destFile)
호출자가 원격 콘텐츠를 배치해야 하는 대상 파일을 지정할 수 있는 downloadFile(String)의 대체 양식입니다.
| 매개변수 |
remoteFilePath |
String: 다운로드할 파일의 원격 경로로, 구현별 루트를 기준으로 합니다. |
destFile |
File: 다운로드한 콘텐츠를 배치할 파일입니다. 존재하지 않아야 합니다. |
downloadFile
public File downloadFile (String remoteFilePath)
원격 파일을 로컬 디스크의 임시 파일로 다운로드합니다.
| 매개변수 |
remoteFilePath |
String: 다운로드할 파일의 원격 경로로, 구현
별 루트를 기준으로 합니다. |
| 반환 |
File |
다운로드된 임시 로컬 File입니다. |
downloadZippedFiles
public void downloadZippedFiles (File destDir,
String remoteFilePath,
List<String> includeFilters,
List<String> excludeFilters)
원격 ZIP 파일에서 지정된 필터와 일치하는 파일을 다운로드합니다.
원격 ZIP 파일 내부의 파일은 경로가
포함 필터와 일치하지만 제외 필터와 일치하지 않는 경우에만 다운로드됩니다.
| 매개변수 |
destDir |
File: 다운로드한 콘텐츠를 배치할 파일입니다. |
remoteFilePath |
String: 다운로드할 파일의 원격 경로로, 구현
별 루트를 기준으로 합니다. |
includeFilters |
List: 일치하는 파일을 다운로드할 필터 목록입니다. |
excludeFilters |
List: 일치하는 파일의 다운로드를 건너뛸 필터 목록입니다. |
isFresh
public boolean isFresh (File localFile,
String remoteFilePath)
로컬 파일의 최신 상태를 확인합니다. 로컬 파일이 원격 파일과 동일하면 최신 상태입니다. 그렇지 않으면 로컬 파일이 오래된 것입니다. 이는 주로 캐시에 사용됩니다. 기본 구현은
항상 true를 반환하므로 파일이 변경 불가능한 경우 최신 상태를 확인할 필요가 없습니다.
| 매개변수 |
localFile |
File: 로컬 파일입니다. |
remoteFilePath |
String: 원격 파일 경로입니다. |
| 반환 |
boolean |
로컬 파일이 최신 상태이면 true이고, 그렇지 않으면 false입니다. |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2026-06-22(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2026-06-22(UTC)"],[],[]]