Example usage for Java org.apache.commons.compress.archivers.zip ZipArchiveEntry fields, constructors, methods, implement or subclass
The text is from its open source code.
ZipArchiveEntry(String name) Creates a new zip entry with the specified name. | |
ZipArchiveEntry(java.util.zip.ZipEntry entry) Creates a new zip entry with fields taken from the specified zip entry. | |
ZipArchiveEntry(ZipArchiveEntry entry) Creates a new zip entry with fields taken from the specified zip entry. | |
ZipArchiveEntry(File inputFile, String entryName) Creates a new zip entry taking some information from the given file and using the provided name. |
void | addExtraField(ZipExtraField ze) Adds an extra field - replacing an already present extra field of the same type. |
Object | clone() Overwrite clone. |
String | getComment() Returns the comment string for the entry. |
long | getCompressedSize() Returns the size of the compressed entry data. |
long | getCrc() Returns the CRC-32 checksum of the uncompressed entry data. |
long | getExternalAttributes() Retrieves the external file attributes. |
byte[] | getExtra() Returns the extra field data for the entry. |
ZipExtraField | getExtraField(ZipShort type) Looks up an extra field by its header id. |
ZipExtraField[] | getExtraFields(boolean includeUnparseable) Retrieves extra fields. |
ZipExtraField[] | getExtraFields() Retrieves all extra fields that have been parsed successfully. |
GeneralPurposeBit | getGeneralPurposeBit() The "general purpose bit" field. |
int | getInternalAttributes() Retrieves the internal file attributes. |
Date | getLastModifiedDate() |
byte[] | getLocalFileDataExtra() Retrieves the extra data for the local file data. |
int | getMethod() Returns the compression method of this entry, or -1 if the compression method has not been specified. |
String | getName() Get the name of the entry. |
int | getPlatform() Platform specification to put into the "version made by" part of the central file header. |
byte[] | getRawName() Returns the raw bytes that made up the name before it has been converted using the configured or guessed encoding. |
long | getSize() Returns the uncompressed size of the entry data. |
long | getTime() Returns the last modification time of the entry. |
int | getUnixMode() Unix permission. |
UnparseableExtraFieldData | getUnparseableExtraFieldData() Looks up extra field data that couldn't be parsed correctly. |
boolean | isDirectory() Is this entry a directory? |
void | removeExtraField(ZipShort type) Remove an extra field. |
void | setComment(String comment) Sets the optional comment string for the entry. |
void | setCompressedSize(long csize) Sets the size of the compressed entry data. |
void | setCrc(long crc) Sets the CRC-32 checksum of the uncompressed entry data. |
ZipEntry | setCreationTime(FileTime time) Sets the creation time of the entry. |
void | setExternalAttributes(long value) Sets the external file attributes. |
void | setExtra(byte[] extra) Parses the given bytes as extra field data and consumes any unparseable data as an UnparseableExtraFieldData instance. |
void | setExtraFields(ZipExtraField[] fields) Replaces all currently attached extra fields with the new array. |
void | setInternalAttributes(int value) Sets the internal file attributes. |
ZipEntry | setLastAccessTime(FileTime time) Sets the last access time of the entry. |
ZipEntry | setLastModifiedTime(FileTime time) Sets the last modification time of the entry. |
void | setMethod(int method) Sets the compression method of this entry. |
void | setSize(long size) Sets the uncompressed size of the entry data. |
void | setTime(long time) Sets the last modification time of the entry. |
void | setUnixMode(int mode) Sets Unix permissions in a way that is understood by Info-Zip's unzip command. |