اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release
بدلاً من aosp-main
لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
EndCentralDirectoryInfo
public
final
class
EndCentralDirectoryInfo
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.zip.EndCentralDirectoryInfo
|
EndCentralDirectoryInfo هي فئة تحتوي على المعلومات العامة لملف zip. يمكنك العثور عليه في
نهاية ملف zip.
تنسيق ملف zip العام: [عنوان الملف المحلي + البيانات المضغوطة [+ عنوان محلي موسّع]؟]*
[الدليل المركزي]* [نهاية سجلّ الدليل المركزي]
يُرجى الرجوع إلى الرابط التالي للحصول على مزيد من التفاصيل: https://en.wikipedia.org/wiki/Zip_(file_format)
ملخّص
الثابتات
MAX_LOOKBACK
public static final int MAX_LOOKBACK
القيمة الثابتة:
65536
(0x00010000)
وظائف الإنشاء العامة
EndCentralDirectoryInfo
public EndCentralDirectoryInfo (File zipFile)
أداة إنشاء لجمع معلومات الدليل المركزي النهائي لملف zip
المعلمات |
zipFile |
File : يحتوي ERROR(/File) على معلومات الدليل المركزي النهائي. من المحتمل أنّه
الجزء الأخير من ملف zip. |
EndCentralDirectoryInfo
public EndCentralDirectoryInfo (File zipFile,
boolean useZip64)
أداة إنشاء لجمع معلومات الدليل المركزي النهائي لملف zip
المعلمات |
zipFile |
File : يحتوي ERROR(/File) على معلومات الدليل المركزي النهائي. من المحتمل أنّه
الجزء الأخير من ملف zip. |
useZip64 |
boolean : قيمة منطقية لتفعيل تنسيق zip64 في التنزيل الجزئي |
الطرق العامة
getCentralDirOffset
public long getCentralDirOffset ()
getCentralDirSize
public long getCentralDirSize ()
getEntryNumber
public long getEntryNumber ()
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# EndCentralDirectoryInfo\n=======================\n\n\n`\npublic\n\nfinal\n\nclass\nEndCentralDirectoryInfo\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|-------------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.util.zip.EndCentralDirectoryInfo |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nEndCentralDirectoryInfo is a class containing the overall information of a zip file. It's at the\nend of the zip file.\n\nOverall zipfile format: \\[Local file header + Compressed data \\[+ Extended local header\\]?\\]\\*\n\\[Central directory\\]\\* \\[End of central directory record\\]\n\nRefer to following link for more details: https://en.wikipedia.org/wiki/Zip_(file_format)\n\nSummary\n-------\n\n| ### Constants ||\n|-------|---------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [MAX_LOOKBACK](../../../../../../../reference/tradefed/com/android/tradefed/util/zip/EndCentralDirectoryInfo.html#MAX_LOOKBACK) |\n\n| ### Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[EndCentralDirectoryInfo](../../../../../../../reference/tradefed/com/android/tradefed/util/zip/EndCentralDirectoryInfo.html#EndCentralDirectoryInfo(File))`(File zipFile) ` Constructor to collect end central directory information of a zip file. |\n| ` `[EndCentralDirectoryInfo](../../../../../../../reference/tradefed/com/android/tradefed/util/zip/EndCentralDirectoryInfo.html#EndCentralDirectoryInfo(File,%20boolean))`(File zipFile, boolean useZip64) ` Constructor to collect end central directory information of a zip file. |\n\n| ### Public methods ||\n|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` long` | ` `[getCentralDirOffset](../../../../../../../reference/tradefed/com/android/tradefed/util/zip/EndCentralDirectoryInfo.html#getCentralDirOffset())`() ` |\n| ` long` | ` `[getCentralDirSize](../../../../../../../reference/tradefed/com/android/tradefed/util/zip/EndCentralDirectoryInfo.html#getCentralDirSize())`() ` |\n| ` long` | ` `[getEntryNumber](../../../../../../../reference/tradefed/com/android/tradefed/util/zip/EndCentralDirectoryInfo.html#getEntryNumber())`() ` |\n\nConstants\n---------\n\n### MAX_LOOKBACK\n\n```\npublic static final int MAX_LOOKBACK\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nConstant Value:\n\n65536\n(0x00010000)\n\n\nPublic constructors\n-------------------\n\n### EndCentralDirectoryInfo\n\n```\npublic EndCentralDirectoryInfo (File zipFile)\n```\n\nConstructor to collect end central directory information of a zip file.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| `zipFile` | `File`: a [ERROR(/File)](../../../../../../../) contains the end central directory information. It's likely the ending part of the zip file. \u003cbr /\u003e |\n\n| Throws ||\n|---|-------------|\n| | IOException |\n\n### EndCentralDirectoryInfo\n\n```\npublic EndCentralDirectoryInfo (File zipFile, \n boolean useZip64)\n```\n\nConstructor to collect end central directory information of a zip file.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|\n| `zipFile` | `File`: a [ERROR(/File)](../../../../../../../) contains the end central directory information. It's likely the ending part of the zip file. \u003cbr /\u003e |\n| `useZip64` | `boolean`: a boolean to support zip64 format in partial download. \u003cbr /\u003e |\n\n| Throws ||\n|---|-------------|\n| | IOException |\n\nPublic methods\n--------------\n\n### getCentralDirOffset\n\n```\npublic long getCentralDirOffset ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------|--------|\n| `long` | \u003cbr /\u003e |\n\n### getCentralDirSize\n\n```\npublic long getCentralDirSize ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------|--------|\n| `long` | \u003cbr /\u003e |\n\n### getEntryNumber\n\n```\npublic long getEntryNumber ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------|--------|\n| `long` | \u003cbr /\u003e |"]]