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