結束中央目錄訊息

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)

概括

常數

int MAX_LOOKBACK

公共構造函數

EndCentralDirectoryInfo (File zipFile)

用於收集 zip 檔案的最終中央目錄資訊的建構子。

EndCentralDirectoryInfo (File zipFile, boolean useZip64)

用於收集 zip 檔案的最終中央目錄資訊的建構子。

公共方法

long getCentralDirOffset ()
long getCentralDirSize ()
long getEntryNumber ()

常數

最大回溯

public static final int MAX_LOOKBACK

常數值:65536 (0x00010000)

公共構造函數

結束中央目錄訊息

public EndCentralDirectoryInfo (File zipFile)

用於收集 zip 檔案的最終中央目錄資訊的建構子。

參數
zipFile FileERROR(/File)包含最終中央目錄資訊。它可能是 zip 檔案的結尾部分。

投擲
IO異常

結束中央目錄訊息

public EndCentralDirectoryInfo (File zipFile, 
                boolean useZip64)

用於收集 zip 檔案的最終中央目錄資訊的建構子。

參數
zipFile FileERROR(/File)包含最終中央目錄資訊。它可能是 zip 檔案的結尾部分。

useZip64 boolean :支援部分下載 zip64 格式的布林值。

投擲
IO異常

公共方法

取得CentralDirOffset

public long getCentralDirOffset ()

退貨
long

取得中央目錄大小

public long getCentralDirSize ()

退貨
long

取得條目號

public long getEntryNumber ()

退貨
long