Class CentralDirFileHeader
java.lang.Object
com.pnfsoftware.jeb.util.encoding.zip.fsr.CentralDirFileHeader
Representation of the central directory header of a Zip file. At least 46 bytes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the entry file name decoded as UTF-8.booleanDetermine whether the entry is flagged as encrypted.static CentralDirFileHeaderparse(SeekableByteChannel channel, int base) Parse a central directory file header from a channel.toString()
-
Constructor Details
-
CentralDirFileHeader
public CentralDirFileHeader()
-
-
Method Details
-
parse
Parse a central directory file header from a channel.- Parameters:
channel- input channelbase- offset of the header signature- Returns:
- parsed header
- Throws:
IOException- if the header cannot be read
-
getFilename
Get the entry file name decoded as UTF-8.- Returns:
- entry file name
-
isEncrypted
public boolean isEncrypted()Determine whether the entry is flagged as encrypted.- Returns:
- true if the encryption flag is set
-
toString
-