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)

摘要

常量

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 FileFile 包含结束中央目录信息。这很可能是 ZIP 文件的结尾部分。

抛出
java.io.IOException
IOException

EndCentralDirectoryInfo

public EndCentralDirectoryInfo (File zipFile, 
                boolean useZip64)

用于收集 ZIP 文件结尾中央目录信息的构造函数。

参数
zipFile FileFile 包含结束中央目录信息。这很可能是 ZIP 文件的结尾部分。

useZip64 boolean:一个布尔值,用于支持部分下载中的 zip64 格式。

抛出
java.io.IOException
IOException

公共方法

getCentralDirOffset

public long getCentralDirOffset ()

返回
long

getCentralDirSize

public long getCentralDirSize ()

返回
long

getEntryNumber

public long getEntryNumber ()

返回
long