Mulai 27 Maret 2025, sebaiknya gunakan android-latest-release
, bukan aosp-main
, untuk mem-build dan berkontribusi pada AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
EndCentralDirectoryInfo
public
final
class
EndCentralDirectoryInfo
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.zip.EndCentralDirectoryInfo
|
EndCentralDirectoryInfo adalah class yang berisi informasi keseluruhan file zip. File ini berada di
akhir file zip.
Format file zip secara keseluruhan: [Header file lokal + Data terkompresi [+ Header lokal yang diperluas]?]*
[Central directory]* [End of central directory record]
Buka link berikut untuk mengetahui detail selengkapnya: https://en.wikipedia.org/wiki/Zip_(file_format)
Ringkasan
Konstruktor publik |
EndCentralDirectoryInfo(File zipFile)
Konstruktor untuk mengumpulkan informasi direktori pusat akhir file zip.
|
EndCentralDirectoryInfo(File zipFile, boolean useZip64)
Konstruktor untuk mengumpulkan informasi direktori pusat akhir file zip.
|
Konstanta
MAX_LOOKBACK
public static final int MAX_LOOKBACK
Nilai Konstanta:
65536
(0x00010000)
Konstruktor publik
EndCentralDirectoryInfo
public EndCentralDirectoryInfo (File zipFile)
Konstruktor untuk mengumpulkan informasi direktori pusat akhir file zip.
Parameter |
zipFile |
File : ERROR(/File) berisi informasi direktori pusat akhir. Ini mungkin bagian akhir file zip. |
EndCentralDirectoryInfo
public EndCentralDirectoryInfo (File zipFile,
boolean useZip64)
Konstruktor untuk mengumpulkan informasi direktori pusat akhir file zip.
Parameter |
zipFile |
File : ERROR(/File) berisi informasi direktori pusat akhir. Ini mungkin bagian akhir file zip. |
useZip64 |
boolean : boolean untuk mendukung format zip64 dalam download sebagian. |
Metode publik
getCentralDirOffset
public long getCentralDirOffset ()
getCentralDirSize
public long getCentralDirSize ()
getEntryNumber
public long getEntryNumber ()
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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 |"]]