2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、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 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 |"]]