RemoteZip

public class RemoteZip
extends Object

java.lang.Object
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, originalFiles) downloadFiles (File destDir, originalFiles)

ดาวน์โหลดไฟล์ที่ระบุในไฟล์ zip ระยะไกล

long getLastAccess ()

รับครั้งล่าสุดที่มีการเข้าถึงวัตถุนี้

String getRemoteFilePath ()

รับเส้นทางไฟล์ระยะไกลของส่วน zip ระยะไกล

getZipEntries ()

รับรายการไฟล์ zip ของไฟล์ zip ระยะไกล

void setLastAccess (long timestamp)

อัปเดตการประทับเวลาการเข้าถึงล่าสุดของออบเจ็กต์

ผู้รับเหมาก่อสร้างสาธารณะ

RemoteZip

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

RemoteZip

public RemoteZip (String remoteFilePath, 
                long fileSize, 
                IFileDownloader downloader, 
                boolean useZip64)

พารามิเตอร์
remoteFilePath String

fileSize long

downloader IFileDownloader

useZip64 boolean

RemoteZip

public RemoteZip (String remoteFilePath, 
                long fileSize, 
                IFileDownloader downloader)

ตัวสร้าง

พารามิเตอร์
remoteFilePath String : เส้นทางระยะไกลไปยังไฟล์ที่จะดาวน์โหลด

fileSize long : ขนาดของไฟล์ระยะไกล

downloader IFileDownloader : @{link IFileDownloader} ใช้ในการดาวน์โหลดไฟล์ระยะไกล

วิธีการสาธารณะ

ดาวน์โหลดไฟล์

public void downloadFiles (File destDir, 
                 originalFiles)

ดาวน์โหลดไฟล์ที่ระบุในไฟล์ zip ระยะไกล

พารามิเตอร์
destDir File : ไดเร็กทอรีสำหรับวางไฟล์ที่ดาวน์โหลดไว้

originalFiles : รายการที่จะดาวน์โหลดจากไฟล์ zip ระยะไกล

ขว้าง
com.android.tradefed.build.BuildRetrievalError
IOข้อยกเว้น
BuildRetrievalError

getLastAccess

public long getLastAccess ()

รับครั้งล่าสุดที่มีการเข้าถึงวัตถุนี้

การส่งคืน
long

getRemoteFilePath.getRemoteFilePath

public String getRemoteFilePath ()

รับเส้นทางไฟล์ระยะไกลของส่วน zip ระยะไกล

การส่งคืน
String

getZipEntries

public  getZipEntries ()

รับรายการไฟล์ zip ของไฟล์ zip ระยะไกล

การส่งคืน

ขว้าง
BuildRetrievalError หากไม่สามารถดาวน์โหลดไฟล์ได้

setLastAccess

public void setLastAccess (long timestamp)

อัปเดตการประทับเวลาการเข้าถึงล่าสุดของออบเจ็กต์

พารามิเตอร์
timestamp long