public final class ZipFile extends CustomPackage
Represents metadata associated with an archived file or directory.
Learn more
| Modifier and Type | Method and Description |
|---|---|
long |
getCompressedSize()
Gets the compressed size in bytes.
|
ZipCompressionMethod |
getCompressionMethod()
Gets the compression method.
|
int |
getFlags()
Gets the ZIP entry flags.
|
Date |
getModificationDateTime()
Gets the last modification date and time.
|
String |
getName()
Gets the entry name.
|
byte[] |
getRawName()
Gets an array of bytes representing the name of the entry.
|
long |
getUncompressedSize()
Gets the uncompressed size in bytes.
|
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, sanitize, setProperties, updatePropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic final long getCompressedSize()
Gets the compressed size in bytes.
public final ZipCompressionMethod getCompressionMethod()
Gets the compression method.
public final int getFlags()
Gets the ZIP entry flags.
Bit 00: encrypted file. <br></br>
Bit 01: compression option. <br></br>
Bit 02: compression option. <br></br>
Bit 03: data descriptor. <br></br>
Bit 04: enhanced deflation. <br></br>
Bit 05: compressed patched data. <br></br>
Bit 06: strong encryption. <br></br>
Bit 07-10: unused. <br></br>
Bit 11: language encoding. <br></br>
Bit 12: reserved. <br></br>
Bit 13: mask header values. <br></br>
Bit 14-15: reserved. <br></br>
public final Date getModificationDateTime()
Gets the last modification date and time.
public final String getName()
Gets the entry name.
public final byte[] getRawName()
Gets an array of bytes representing the name of the entry.
public final long getUncompressedSize()
Gets the uncompressed size in bytes.
Copyright © 2025. All rights reserved.