ZipFile
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.CustomPackage
public final class ZipFile extends CustomPackage
Represents metadata associated with an archived file or directory.
Learn more
| Method | Description |
|---|---|
| getCompressionMethod() | Gets the compression method. |
| getCompressedSize() | Gets the compressed size in bytes. |
| getUncompressedSize() | Gets the uncompressed size in bytes. |
| getFlags() | Gets the ZIP entry flags. |
| getName() | Gets the entry name. |
| getRawName() | Gets an array of bytes representing the name of the entry. |
| getModificationDateTime() | Gets the last modification date and time. |
public final ZipCompressionMethod getCompressionMethod()
Gets the compression method.
Returns: ZipCompressionMethod - The compression method.
public final long getCompressedSize()
Gets the compressed size in bytes.
Returns: long - The compressed size in bytes.
public final long getUncompressedSize()
Gets the uncompressed size in bytes.
Returns: long - The uncompressed size in bytes.
public final int getFlags()
Gets the ZIP entry flags.
Returns: int - The ZIP entry flags.
Bit 00: encrypted file.
Bit 01: compression option.
Bit 02: compression option.
Bit 03: data descriptor.
Bit 04: enhanced deflation.
Bit 05: compressed patched data.
Bit 06: strong encryption.
Bit 07-10: unused.
Bit 11: language encoding.
Bit 12: reserved.
Bit 13: mask header values.
Bit 14-15: reserved.
public final String getName()
Gets the entry name.
Returns: java.lang.String - The entry name. It can be a file or directory name.
public final byte[] getRawName()
Gets an array of bytes representing the name of the entry.
Returns: byte[] - An array of bytes representing the name of the entry.
public final Date getModificationDateTime()
Gets the last modification date and time.
Returns: java.util.Date - The last modification date and time.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.