RemoteZip

public class RemoteZip
extends Object

java.lang.Object
com.android.tradefed.util.RemoteZip


أدوات مساعدة لفك ضغط الملفات الفردية داخل ملف مضغوط بعيد.

ملخص

المقاولين العامة

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)

قم بتنزيل الملفات المحددة في ملف مضغوط عن بعد.

long getLastAccess ()

احصل على آخر مرة تم فيها الوصول إلى هذا الكائن.

String getRemoteFilePath ()

احصل على مسار الملف البعيد للأداة المضغوطة البعيدة.

getZipEntries ()

يحصل على إدخالات ملف مضغوط لملف مضغوط بعيد.

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)

قم بتنزيل الملفات المحددة في ملف مضغوط عن بعد.

حدود
destDir File : الدليل الذي سيتم وضع الملفات التي تم تنزيلها فيه.

originalFiles : قائمة الإدخالات للتنزيل من الملف المضغوط البعيد.

رميات
com.android.tradefed.build.BuildRetrievalError
IOEException
BuildRetrievalError

getLastAccess

public long getLastAccess ()

احصل على آخر مرة تم فيها الوصول إلى هذا الكائن.

عائدات
long

getRemoteFilePath

public String getRemoteFilePath ()

احصل على مسار الملف البعيد للأداة المضغوطة البعيدة.

عائدات
String

getZipEntries

public  getZipEntries ()

يحصل على إدخالات ملف مضغوط لملف مضغوط بعيد.

عائدات

رميات
BuildRetrievalError إذا تعذر تنزيل الملف.

setLastAccess

public void setLastAccess (long timestamp)

قم بتحديث الطابع الزمني الأخير للوصول للكائن.

حدود
timestamp long