ZipEntry Members

ZipEntry Members

Class Overview | This Package | All Packages

Fields
Name Description
DEFLATED Compression method for compressed (deflated) entries.
STORED Compression method for uncompressed entries.

Constructors
Name Description
ZipEntry(String) Creates a new ZIP file entry with the specified name.

Methods
Name Description
getComment() Returns the comment string for the entry, or null if none.
getCompressedSize() Returns the compressed size of the entry data, or -1 if not known.
getCrc() Returns the CRC-32 checksum of the uncompressed entry data, or -1 if not known.
getExtra() Returns the extra field data for the entry, or null if none.
getMethod() Returns the compression method of the entry, or -1 if not specified.
getName() Returns the name of the entry.
getSize() Returns the uncompressed size of the entry data, or -1 if not known.
getTime() Returns the modification time of the entry, or -1 if not specified.
isDirectory() Returns true if this is a directory entry.
setComment(String) Sets the optional comment string for the entry.
setCrc(long) Sets the CRC-32 checksum of the uncompressed entry data.
setExtra(byte[]) Sets the optional extra field data for the entry.
setMethod(int) Sets the compression method for the entry.
setSize(long) Sets the uncompressed size of the entry data.
setTime(long) Sets the modification time of the entry.
toString() Returns a string representation of the ZIP entry.