ตั้งแต่วันที่ 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 โดยรวม: [ส่วนหัวของไฟล์ในเครื่อง + ข้อมูลที่บีบอัด [+ ส่วนหัวในเครื่องแบบขยาย]?]*
[Central directory]* [End of central directory record]
ดูรายละเอียดเพิ่มเติมได้ที่ลิงก์ต่อไปนี้ https://en.wikipedia.org/wiki/Zip_(file_format)
สรุป
ตัวสร้างแบบสาธารณะ |
EndCentralDirectoryInfo(File zipFile)
ตัวสร้างคอนสตรัคเตอร์เพื่อรวบรวมข้อมูลไดเรกทอรีกลางส่วนท้ายของไฟล์ ZIP
|
EndCentralDirectoryInfo(File zipFile, boolean useZip64)
ตัวสร้างคอนสตรัคเตอร์เพื่อรวบรวมข้อมูลไดเรกทอรีกลางส่วนท้ายของไฟล์ ZIP
|
ค่าคงที่
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 UTC
[[["เข้าใจง่าย","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 UTC"],[],[],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 |"]]