ZipFile

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

Methods

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.

getCompressionMethod()

public final ZipCompressionMethod getCompressionMethod()

Gets the compression method.

Returns: ZipCompressionMethod - The compression method.

getCompressedSize()

public final long getCompressedSize()

Gets the compressed size in bytes.

Returns: long - The compressed size in bytes.

getUncompressedSize()

public final long getUncompressedSize()

Gets the uncompressed size in bytes.

Returns: long - The uncompressed size in bytes.

getFlags()

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.

getName()

public final String getName()

Gets the entry name.

Returns: java.lang.String - The entry name. It can be a file or directory name.

getRawName()

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.

getModificationDateTime()

public final Date getModificationDateTime()

Gets the last modification date and time.

Returns: java.util.Date - The last modification date and time.