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)

摘要

常數

int MAX_LOOKBACK

公用建構函式

EndCentralDirectoryInfo(File zipFile)

建構函式,用於收集 ZIP 檔案的結尾中央目錄資訊。

EndCentralDirectoryInfo(File zipFile, boolean useZip64)

建構函式,用於收集 ZIP 檔案的結尾中央目錄資訊。

公用方法

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

常數

MAX_LOOKBACK

public static final int MAX_LOOKBACK

常數值: 65536 (0x00010000)

公用建構函式

EndCentralDirectoryInfo

public EndCentralDirectoryInfo (File zipFile)

建構函式,用於收集 ZIP 檔案的結尾中央目錄資訊。

參數
zipFile File:File 包含結尾中央目錄資訊。這可能是 ZIP 檔案的結尾部分。

擲回
java.io.IOException
IOException

EndCentralDirectoryInfo

public EndCentralDirectoryInfo (File zipFile, 
                boolean useZip64)

建構函式,用於收集 ZIP 檔案的結尾中央目錄資訊。

參數
zipFile File:File 包含結尾中央目錄資訊。這可能是 ZIP 檔案的結尾部分。

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

擲回
java.io.IOException
IOException

公用方法

getCentralDirOffset

public long getCentralDirOffset ()

傳回
long

getCentralDirSize

public long getCentralDirSize ()

傳回
long

getEntryNumber

public long getEntryNumber ()

傳回
long