public class FileHeader
extends java.lang.Object
构造器和说明 |
---|
FileHeader() |
限定符和类型 | 方法和说明 |
---|---|
void |
extractFile(ZipModel zipModel,
java.lang.String outPath,
ProgressMonitor progressMonitor,
boolean runInThread)
Extracts file to the specified directory
|
void |
extractFile(ZipModel zipModel,
java.lang.String outPath,
UnzipParameters unzipParameters,
ProgressMonitor progressMonitor,
boolean runInThread)
Extracts file to the specified directory using any
user defined parameters in UnzipParameters
|
void |
extractFile(ZipModel zipModel,
java.lang.String outPath,
UnzipParameters unzipParameters,
java.lang.String newFileName,
ProgressMonitor progressMonitor,
boolean runInThread)
Extracts file to the specified directory using any
user defined parameters in UnzipParameters.
|
AESExtraDataRecord |
getAesExtraDataRecord() |
long |
getCompressedSize() |
int |
getCompressionMethod() |
long |
getCrc32() |
byte[] |
getCrcBuff() |
int |
getDiskNumberStart() |
int |
getEncryptionMethod() |
byte[] |
getExternalFileAttr() |
java.util.ArrayList |
getExtraDataRecords() |
int |
getExtraFieldLength() |
java.lang.String |
getFileComment() |
int |
getFileCommentLength() |
java.lang.String |
getFileName() |
int |
getFileNameLength() |
byte[] |
getGeneralPurposeFlag() |
byte[] |
getInternalFileAttr() |
int |
getLastModFileTime() |
long |
getOffsetLocalHeader() |
char[] |
getPassword() |
int |
getSignature() |
long |
getUncompressedSize() |
int |
getVersionMadeBy() |
int |
getVersionNeededToExtract() |
Zip64ExtendedInfo |
getZip64ExtendedInfo() |
boolean |
isDataDescriptorExists() |
boolean |
isDirectory() |
boolean |
isEncrypted() |
boolean |
isFileNameUTF8Encoded() |
void |
setAesExtraDataRecord(AESExtraDataRecord aesExtraDataRecord) |
void |
setCompressedSize(long compressedSize) |
void |
setCompressionMethod(int compressionMethod) |
void |
setCrc32(long crc32) |
void |
setCrcBuff(byte[] crcBuff) |
void |
setDataDescriptorExists(boolean dataDescriptorExists) |
void |
setDirectory(boolean isDirectory) |
void |
setDiskNumberStart(int diskNumberStart) |
void |
setEncrypted(boolean isEncrypted) |
void |
setEncryptionMethod(int encryptionMethod) |
void |
setExternalFileAttr(byte[] externalFileAttr) |
void |
setExtraDataRecords(java.util.ArrayList extraDataRecords) |
void |
setExtraFieldLength(int extraFieldLength) |
void |
setFileComment(java.lang.String fileComment) |
void |
setFileCommentLength(int fileCommentLength) |
void |
setFileName(java.lang.String fileName) |
void |
setFileNameLength(int fileNameLength) |
void |
setFileNameUTF8Encoded(boolean fileNameUTF8Encoded) |
void |
setGeneralPurposeFlag(byte[] generalPurposeFlag) |
void |
setInternalFileAttr(byte[] internalFileAttr) |
void |
setLastModFileTime(int lastModFileTime) |
void |
setOffsetLocalHeader(long offsetLocalHeader) |
void |
setPassword(char[] password) |
void |
setSignature(int signature) |
void |
setUncompressedSize(long uncompressedSize) |
void |
setVersionMadeBy(int versionMadeBy) |
void |
setVersionNeededToExtract(int versionNeededToExtract) |
void |
setZip64ExtendedInfo(Zip64ExtendedInfo zip64ExtendedInfo) |
public int getSignature()
public void setSignature(int signature)
public int getVersionMadeBy()
public void setVersionMadeBy(int versionMadeBy)
public int getVersionNeededToExtract()
public void setVersionNeededToExtract(int versionNeededToExtract)
public byte[] getGeneralPurposeFlag()
public void setGeneralPurposeFlag(byte[] generalPurposeFlag)
public int getCompressionMethod()
public void setCompressionMethod(int compressionMethod)
public int getLastModFileTime()
public void setLastModFileTime(int lastModFileTime)
public long getCrc32()
public void setCrc32(long crc32)
public long getCompressedSize()
public void setCompressedSize(long compressedSize)
public long getUncompressedSize()
public void setUncompressedSize(long uncompressedSize)
public int getFileNameLength()
public void setFileNameLength(int fileNameLength)
public int getExtraFieldLength()
public void setExtraFieldLength(int extraFieldLength)
public int getFileCommentLength()
public void setFileCommentLength(int fileCommentLength)
public int getDiskNumberStart()
public void setDiskNumberStart(int diskNumberStart)
public byte[] getInternalFileAttr()
public void setInternalFileAttr(byte[] internalFileAttr)
public byte[] getExternalFileAttr()
public void setExternalFileAttr(byte[] externalFileAttr)
public long getOffsetLocalHeader()
public void setOffsetLocalHeader(long offsetLocalHeader)
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
public java.lang.String getFileComment()
public void setFileComment(java.lang.String fileComment)
public boolean isDirectory()
public void setDirectory(boolean isDirectory)
public void extractFile(ZipModel zipModel, java.lang.String outPath, ProgressMonitor progressMonitor, boolean runInThread) throws ZipException
zipModel
- outPath
- ZipException
public void extractFile(ZipModel zipModel, java.lang.String outPath, UnzipParameters unzipParameters, ProgressMonitor progressMonitor, boolean runInThread) throws ZipException
zipModel
- outPath
- unzipParameters
- ZipException
public void extractFile(ZipModel zipModel, java.lang.String outPath, UnzipParameters unzipParameters, java.lang.String newFileName, ProgressMonitor progressMonitor, boolean runInThread) throws ZipException
zipModel
- outPath
- unzipParameters
- ZipException
public boolean isEncrypted()
public void setEncrypted(boolean isEncrypted)
public int getEncryptionMethod()
public void setEncryptionMethod(int encryptionMethod)
public char[] getPassword()
public void setPassword(char[] password)
public byte[] getCrcBuff()
public void setCrcBuff(byte[] crcBuff)
public java.util.ArrayList getExtraDataRecords()
public void setExtraDataRecords(java.util.ArrayList extraDataRecords)
public boolean isDataDescriptorExists()
public void setDataDescriptorExists(boolean dataDescriptorExists)
public Zip64ExtendedInfo getZip64ExtendedInfo()
public void setZip64ExtendedInfo(Zip64ExtendedInfo zip64ExtendedInfo)
public AESExtraDataRecord getAesExtraDataRecord()
public void setAesExtraDataRecord(AESExtraDataRecord aesExtraDataRecord)
public boolean isFileNameUTF8Encoded()
public void setFileNameUTF8Encoded(boolean fileNameUTF8Encoded)