public class CentralDirectoryEntry extends java.lang.Object implements ZipConstants
CENSIG, ENDSIG, EXTSIG, LOCSIG
Constructor and Description |
---|
CentralDirectoryEntry(ExtRandomAccessFile raFile,
long fileOffset) |
Modifier and Type | Method and Description |
---|---|
short |
getActualCompressionMethod()
(for encrypted files) stored in extra field
java zip only supports STORED and DEFLATED
|
int |
getCompressedSize() |
short |
getCryptoHeaderLength()
fixed 256 key size, 16 bytes salt + 2 bytes pwVerification
|
byte |
getEncryptionStrength()
this library currently only supports 256bit keys
|
short |
getExtraFieldLength() |
java.lang.String |
getFileName() |
short |
getFileNameLength() |
long |
getLocalHeaderOffset() |
int |
getLocalHeaderSize() |
int |
getOffset() |
int |
getUncompressedSize() |
boolean |
isAesEncrypted() |
boolean |
isEncrypted() |
java.lang.String |
toString() |
public CentralDirectoryEntry(ExtRandomAccessFile raFile, long fileOffset) throws java.io.IOException
java.io.IOException
public int getCompressedSize()
public int getUncompressedSize()
public boolean isEncrypted()
public java.lang.String getFileName()
public short getFileNameLength()
public short getExtraFieldLength()
public long getLocalHeaderOffset()
public int getOffset()
public short getActualCompressionMethod()
public byte getEncryptionStrength() throws java.io.IOException
java.io.IOException
public int getLocalHeaderSize()
public short getCryptoHeaderLength()
public boolean isAesEncrypted()
public java.lang.String toString()
toString
in class java.lang.Object