LocalFileHeader
public
final
class
LocalFileHeader
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.zip.LocalFileHeader |
LocalFileHeader 是一个类,其中包含 ZIP 文件中文件/文件夹的信息。该数据块位于每个文件条目的开头部分。
整体 ZIP 文件格式:[本地文件标头 + 压缩数据 [+ 扩展的本地标头]?]* [中央目录]* [中央目录结尾记录]
如需了解详情,请访问以下链接:https://en.wikipedia.org/wiki/Zip_(file_format)
摘要
常量 | |
---|---|
int |
LOCAL_FILE_HEADER_SIZE
|
公共构造函数 | |
---|---|
LocalFileHeader(File partialZipFile)
|
|
LocalFileHeader(File partialZipFile, long startOffset)
用于收集 ZIP 文件中文件条目的本地文件标头信息的构造函数。 |
公共方法 | |
---|---|
long
|
getCompressedSize()
|
int
|
getCompressionMethod()
|
long
|
getCrc()
|
int
|
getExtraFieldLength()
|
int
|
getFileNameLength()
|
int
|
getHeaderSize()
|
long
|
getUncompressedSize()
|
常量
LOCAL_FILE_HEADER_SIZE
public static final int LOCAL_FILE_HEADER_SIZE
常量值: 30 (0x0000001e)
公共构造函数
LocalFileHeader
public LocalFileHeader (File partialZipFile)
参数 | |
---|---|
partialZipFile |
File |
LocalFileHeader
public LocalFileHeader (File partialZipFile, long startOffset)
用于收集 zip 文件中文件条目的本地文件标头信息的构造函数。
参数 | |
---|---|
partialZipFile |
File :ERROR(/File) 包含本地文件头信息。 |
startOffset |
long :本地文件头数据块的起始偏移量。 |
抛出 | |
---|---|
|
IOException |
公共方法
getCompressedSize
public long getCompressedSize ()
返回 | |
---|---|
long |
getCompressionMethod
public int getCompressionMethod ()
返回 | |
---|---|
int |
getCrc
public long getCrc ()
返回 | |
---|---|
long |
getExtraFieldLength
public int getExtraFieldLength ()
返回 | |
---|---|
int |
getFileNameLength
public int getFileNameLength ()
返回 | |
---|---|
int |
getHeaderSize
public int getHeaderSize ()
返回 | |
---|---|
int |
getUncompressedSize
public long getUncompressedSize ()
返回 | |
---|---|
long |