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 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