리모트집
public class RemoteZip
extends Object
java.lang.객체 | |
↳ | com.android.tradefed.util.RemoteZip |
원격 zip 파일 내의 개별 파일을 압축 해제하는 유틸리티.
요약
공개 생성자 | |
---|---|
RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64, boolean useCache) 건설자 | |
RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64) | |
RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader) 건설자 |
공개 방법 | |
---|---|
void | downloadFiles (File destDir, files) downloadFiles (File destDir, files) 원격 zip 파일에 지정된 파일을 다운로드합니다. |
long | getLastAccess () 이 개체에 마지막으로 액세스한 시간을 가져옵니다. |
String | getRemoteFilePath () 원격 zip 아티팩트의 원격 파일 경로를 가져옵니다. |
getZipEntries () 원격 zip 파일의 zip 파일 항목을 가져옵니다. | |
void | setLastAccess (long timestamp) 개체의 마지막 액세스 타임스탬프를 업데이트합니다. |
공개 생성자
리모트집
public RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64, boolean useCache)
건설자
매개변수 | |
---|---|
remoteFilePath | String : 다운로드할 파일의 원격 경로. |
fileSize | long : 원격 파일의 크기. |
downloader | IFileDownloader : 원격 파일을 다운로드하는 데 사용되는 @{link IFileDownloader}입니다. |
useZip64 | boolean : 부분 다운로드에 zip64 형식을 사용할지 여부. |
useCache | boolean |
리모트집
public RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64)
매개변수 | |
---|---|
remoteFilePath | String |
fileSize | long |
downloader | IFileDownloader |
useZip64 | boolean |
리모트집
public RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader)
건설자
매개변수 | |
---|---|
remoteFilePath | String : 다운로드할 파일의 원격 경로. |
fileSize | long : 원격 파일의 크기. |
downloader | IFileDownloader : 원격 파일을 다운로드하는 데 사용되는 @{link IFileDownloader}입니다. |
공개 방법
다운로드파일
public void downloadFiles (File destDir,files)
원격 zip 파일에 지정된 파일을 다운로드합니다.
매개변수 | |
---|---|
destDir | File : 다운로드한 파일을 저장할 디렉토리. |
files |
던지기 | |
---|---|
| com.android.tradefed.build.BuildRetrievalError |
| IO예외 |
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 |