RemoteZip
public
class
RemoteZip
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.RemoteZip |
أدوات لفك ضغط الملفات الفردية داخل ملف zip بعيد
ملخّص
طُرق وضع التصميم العامة | |
|---|---|
RemoteZip(String remoteFilePath, long fileSize, IFileDownloader downloader)
طريقة وضع التصميم |
|
RemoteZip(String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64)
|
|
RemoteZip(String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64, boolean useCache)
طريقة وضع التصميم |
|
الإجراءات العامة | |
|---|---|
void
|
downloadFiles(File destDir, List<CentralDirectoryInfo> originalFiles)
تنزيل الملفات المحدّدة في ملف zip البعيد |
long
|
getLastAccess()
الحصول على آخر مرة تم فيها الوصول إلى هذا العنصر |
String
|
getRemoteFilePath()
الحصول على مسار الملف البعيد لأداة zip البعيدة |
List<CentralDirectoryInfo>
|
getZipEntries()
الحصول على إدخالات ملف zip لملف zip بعيد |
void
|
setLastAccess(long timestamp)
تعديل الطابع الزمني لآخر مرة تم فيها الوصول إلى العنصر |
طُرق وضع التصميم العامة
RemoteZip
public RemoteZip (String remoteFilePath,
long fileSize,
IFileDownloader downloader)طريقة وضع التصميم
| المعلَمات | |
|---|---|
remoteFilePath |
String: المسار البعيد للملف الذي سيتم تنزيله |
fileSize |
long: حجم الملف البعيد |
downloader |
IFileDownloader: @{link IFileDownloader} مستخدَم لتنزيل ملف بعيد |
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,
boolean useZip64,
boolean useCache)طريقة وضع التصميم
| المعلَمات | |
|---|---|
remoteFilePath |
String: المسار البعيد للملف الذي سيتم تنزيله |
fileSize |
long: حجم الملف البعيد |
downloader |
IFileDownloader: @{link IFileDownloader} مستخدَم لتنزيل ملف بعيد |
useZip64 |
boolean: ما إذا كان سيتم استخدام تنسيق zip64 للتنزيل الجزئي أم لا |
useCache |
boolean |
الإجراءات العامة
downloadFiles
public void downloadFiles (File destDir,
List<CentralDirectoryInfo> originalFiles)تنزيل الملفات المحدّدة في ملف zip البعيد
| المعلَمات | |
|---|---|
destDir |
File: الدليل الذي سيتم وضع الملفات التي تم تنزيلها فيه |
originalFiles |
List: قائمة بالإدخالات التي سيتم تنزيلها من ملف zip البعيد |
| عمليات الطرح | |
|---|---|
|
com.android.tradefed.build.BuildRetrievalError |
|
java.io.IOException |
BuildRetrievalError |
|
IOException |
|
getLastAccess
public long getLastAccess ()
الحصول على آخر مرة تم فيها الوصول إلى هذا العنصر
| المرتجعات | |
|---|---|
long |
|
getRemoteFilePath
public String getRemoteFilePath ()
الحصول على مسار الملف البعيد لأداة zip البعيدة
| المرتجعات | |
|---|---|
String |
|
getZipEntries
public List<CentralDirectoryInfo> getZipEntries ()
الحصول على إدخالات ملف zip لملف zip بعيد
| المرتجعات | |
|---|---|
List<CentralDirectoryInfo> |
|
| عمليات الطرح | |
|---|---|
BuildRetrievalError |
إذا تعذّر تنزيل الملف |
IOException |
|
setLastAccess
public void setLastAccess (long timestamp)
تعديل الطابع الزمني لآخر مرة تم فيها الوصول إلى العنصر
| المعلَمات | |
|---|---|
timestamp |
long |