Điều khiển từ xaZip
public class RemoteZip
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.RemoteZip |
Các tiện ích để giải nén các tệp riêng lẻ bên trong một tệp zip từ xa.
Bản tóm tắt
nhà thầu công cộng | |
---|---|
RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64, boolean useCache) Người xây dựng | |
RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64) | |
RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader) Người xây dựng |
Phương thức công khai | |
---|---|
void | downloadFiles (File destDir, files) downloadFiles (File destDir, files) Tải xuống các tệp được chỉ định trong tệp zip từ xa. |
long | getLastAccess () Lấy lần cuối đối tượng này được truy cập. |
String | getRemoteFilePath () Nhận đường dẫn tệp từ xa của tạo phẩm zip từ xa. |
getZipEntries () Nhận các mục nhập tệp zip của một tệp zip từ xa. | |
void | setLastAccess (long timestamp) Cập nhật dấu thời gian truy cập cuối cùng của đối tượng. |
nhà thầu công cộng
Điều khiển từ xaZip
public RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64, boolean useCache)
Người xây dựng
Thông số | |
---|---|
remoteFilePath | String : đường dẫn từ xa đến tệp để tải xuống. |
fileSize | long : kích thước của tập tin từ xa. |
downloader | IFileDownloader : @{link IFileDownloader} được sử dụng để tải xuống tệp từ xa. |
useZip64 | boolean : có sử dụng định dạng zip64 để tải xuống một phần hay không. |
useCache | boolean |
Điều khiển từ xaZip
public RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64)
Thông số | |
---|---|
remoteFilePath | String |
fileSize | long |
downloader | IFileDownloader |
useZip64 | boolean |
Điều khiển từ xaZip
public RemoteZip (String remoteFilePath, long fileSize, IFileDownloader downloader)
Người xây dựng
Thông số | |
---|---|
remoteFilePath | String : đường dẫn từ xa đến tệp để tải xuống. |
fileSize | long : kích thước của tập tin từ xa. |
downloader | IFileDownloader : @{link IFileDownloader} được sử dụng để tải xuống tệp từ xa. |
Phương thức công khai
Tải tập tin
public void downloadFiles (File destDir,files)
Tải xuống các tệp được chỉ định trong tệp zip từ xa.
Thông số | |
---|---|
destDir | File : thư mục để chứa các tệp đã tải xuống. |
files |
ném | |
---|---|
| com.android.tradefed.build.BuildRetrievalError |
| IOException |
BuildRetrievalError |
getLastAccess
public long getLastAccess ()
Lấy lần cuối đối tượng này được truy cập.
trả lại | |
---|---|
long |
getRemoteFilePath
public String getRemoteFilePath ()
Nhận đường dẫn tệp từ xa của tạo phẩm zip từ xa.
trả lại | |
---|---|
String |
getZipEntries
publicgetZipEntries ()
Nhận các mục nhập tệp zip của một tệp zip từ xa.
trả lại | |
---|---|
ném | |
---|---|
BuildRetrievalError | nếu tập tin không thể được tải về. |
setLastAccess
public void setLastAccess (long timestamp)
Cập nhật dấu thời gian truy cập cuối cùng của đối tượng.
Thông số | |
---|---|
timestamp | long |