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 |
|
setLastAccess
public void setLastAccess (long timestamp)
更新物件的上次存取時間戳記。
| 參數 | |
|---|---|
timestamp |
long |