RemoteZip
public
class
RemoteZip
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.RemoteZip |
원격 ZIP 파일 내 개별 파일의 압축을 푸는 유틸리티입니다.
요약
공개 생성자 | |
|---|---|
RemoteZip(String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64)
생성자 |
|
RemoteZip(String remoteFilePath, long fileSize, IFileDownloader downloader)
생성자 |
|
공개 메서드 | |
|---|---|
void
|
downloadFiles(File destDir,
원격 ZIP 파일에서 지정된 파일을 다운로드합니다. |
long
|
getLastAccess()
이 객체에 마지막으로 액세스한 시간을 가져옵니다. |
String
|
getRemoteFilePath()
원격 zip 아티팩트의 원격 파일 경로를 가져옵니다. |
|
getZipEntries()
원격 ZIP 파일의 ZIP 파일 항목을 가져옵니다. |
void
|
setLastAccess(long timestamp)
객체의 마지막 액세스 타임스탬프를 업데이트합니다. |
공개 생성자
RemoteZip
public RemoteZip (String remoteFilePath,
long fileSize,
IFileDownloader downloader,
boolean useZip64)생성자
| 매개변수 | |
|---|---|
remoteFilePath |
String: 다운로드할 파일의 원격 경로입니다. |
fileSize |
long: 원격 파일의 크기입니다. |
downloader |
IFileDownloader: 원격 파일을 다운로드하는 데 사용되는 @{link IFileDownloader}입니다. |
useZip64 |
boolean: 부분 다운로드에 zip64 형식을 사용할지 여부입니다.
|
RemoteZip
public RemoteZip (String remoteFilePath,
long fileSize,
IFileDownloader downloader)생성자
| 매개변수 | |
|---|---|
remoteFilePath |
String: 다운로드할 파일의 원격 경로입니다. |
fileSize |
long: 원격 파일의 크기입니다. |
downloader |
IFileDownloader: 원격 파일을 다운로드하는 데 사용되는 @{link IFileDownloader}입니다.
|
공개 메서드
downloadFiles
public void downloadFiles (File destDir,
files) 원격 ZIP 파일에서 지정된 파일을 다운로드합니다.
| 매개변수 | |
|---|---|
destDir |
File: 다운로드한 파일을 저장할 디렉터리입니다. |
files |
: 원격 ZIP 파일에서 다운로드할 항목 목록입니다. |
| 생성 값 | |
|---|---|
|
com.android.tradefed.build.BuildRetrievalError |
BuildRetrievalError |
|
getLastAccess
public long getLastAccess ()
이 객체에 마지막으로 액세스한 시간을 가져옵니다.
| 반환 값 | |
|---|---|
long |
|
getRemoteFilePath
public String getRemoteFilePath ()
원격 zip 아티팩트의 원격 파일 경로를 가져옵니다.
| 반환 값 | |
|---|---|
String |
|
getZipEntries
publicgetZipEntries ()
원격 ZIP 파일의 ZIP 파일 항목을 가져옵니다.
| 반환 값 | |
|---|---|
|
|
| 생성 값 | |
|---|---|
BuildRetrievalError |
파일을 다운로드할 수 없는 경우 |
setLastAccess
public void setLastAccess (long timestamp)
객체의 마지막 액세스 타임스탬프를 업데이트합니다.
| 매개변수 | |
|---|---|
timestamp |
long |