| java.lang.Object java.util.zip.ZipEntry
All known Subclasses: java.util.jar.JarEntry,
Constructor Summary | |
public | ZipEntry(String name) Constructs a new ZipEntry with the specified name. | | ZipEntry(String name, String comment, byte[] extra, long modTime, long size, long compressedSize, long crc, int compressionMethod, long modDate, long offset) | public | ZipEntry(ZipEntry ze) Constructs a new ZipEntry using the values obtained from ze. |
Method Summary | |
public Object | clone() | public String | getComment() Gets the comment for this ZipEntry. | public long | getCompressedSize() Gets the compressed size of this ZipEntry. | public long | getCrc() Gets the crc for this ZipEntry. | public byte[] | getExtra() Gets the extra information for this ZipEntry. | public int | getMethod() Gets the compression method for this ZipEntry. | public String | getName() Gets the name of this ZipEntry. | public long | getSize() Gets the uncompressed size of this ZipEntry. | public long | getTime() Gets the last modification time of this ZipEntry.
the last modification time as the number of milliseconds sinceJan. | public int | hashCode() Returns the hashCode for this ZipEntry. | public boolean | isDirectory() Answers if this ZipEntry is a directory. | public void | setComment(String string) Sets the comment for this ZipEntry. | public void | setCompressedSize(long value) Sets the compressed size for this ZipEntry. | public void | setCrc(long value) Sets the crc for this ZipEntry. | public void | setExtra(byte[] data) Sets the extra information for this ZipEntry. | public void | setMethod(int value) Sets the compression method for this ZipEntry. | public void | setSize(long value) Sets the uncompressed size of this ZipEntry. | public void | setTime(long value) Sets the last modification time of this ZipEntry.
Parameters: value - the last modification time as the number of milliseconds sinceJan. | public String | toString() Answers the string representation of this ZipEntry. |
DEFLATED | final public static int DEFLATED(Code) | | Zip entry state: Deflated
|
STORED | final public static int STORED(Code) | | Zip entry state: Stored
|
compressedSizecrcsizedataOffset | long compressedSizecrcsizedataOffset(Code) | | |
compressionMethodtimemodDate | int compressionMethodtimemodDate(Code) | | |
ZipEntry | public ZipEntry(String name)(Code) | | Constructs a new ZipEntry with the specified name.
Parameters: name - the name of the zip entry |
ZipEntry | ZipEntry(String name, String comment, byte[] extra, long modTime, long size, long compressedSize, long crc, int compressionMethod, long modDate, long offset)(Code) | | |
ZipEntry | public ZipEntry(ZipEntry ze)(Code) | | Constructs a new ZipEntry using the values obtained from ze.
Parameters: ze - ZipEntry from which to obtain values. |
clone | public Object clone()(Code) | | Returns a shallow copy of this entry
a copy of this entry |
getComment | public String getComment()(Code) | | Gets the comment for this ZipEntry.
the comment for this ZipEntry, or null if there is no comment |
getCompressedSize | public long getCompressedSize()(Code) | | Gets the compressed size of this ZipEntry.
the compressed size, or -1 if the compressed size has not beenset |
getCrc | public long getCrc()(Code) | | Gets the crc for this ZipEntry.
the crc, or -1 if the crc has not been set |
getExtra | public byte[] getExtra()(Code) | | Gets the extra information for this ZipEntry.
a byte array containing the extra information, or null if thereis none |
getMethod | public int getMethod()(Code) | | Gets the compression method for this ZipEntry.
the compression method, either DEFLATED, STORED or -1 if thecompression method has not been set |
getName | public String getName()(Code) | | Gets the name of this ZipEntry.
the entry name |
getSize | public long getSize()(Code) | | Gets the uncompressed size of this ZipEntry.
the uncompressed size, or -1 if the size has not been set |
getTime | public long getTime()(Code) | | Gets the last modification time of this ZipEntry.
the last modification time as the number of milliseconds sinceJan. 1, 1970 |
hashCode | public int hashCode()(Code) | | Returns the hashCode for this ZipEntry.
the hashCode of the entry |
isDirectory | public boolean isDirectory()(Code) | | Answers if this ZipEntry is a directory.
true when this ZipEntry is a directory,false otherwise |
setComment | public void setComment(String string)(Code) | | Sets the comment for this ZipEntry.
Parameters: string - the comment |
setCompressedSize | public void setCompressedSize(long value)(Code) | | Sets the compressed size for this ZipEntry.
Parameters: value - the compressed size |
setCrc | public void setCrc(long value)(Code) | | Sets the crc for this ZipEntry.
Parameters: value - the crc throws: IllegalArgumentException - if value is < 0 or > 0xFFFFFFFFL |
setExtra | public void setExtra(byte[] data)(Code) | | Sets the extra information for this ZipEntry.
Parameters: data - a byte array containing the extra information throws: IllegalArgumentException - when the length of data is > 0xFFFF bytes |
setMethod | public void setMethod(int value)(Code) | | Sets the compression method for this ZipEntry.
Parameters: value - the compression method, either DEFLATED or STORED throws: IllegalArgumentException - when value is not DEFLATED or STORED |
setSize | public void setSize(long value)(Code) | | Sets the uncompressed size of this ZipEntry.
Parameters: value - the uncompressed size throws: IllegalArgumentException - if value is < 0 or > 0xFFFFFFFFL |
setTime | public void setTime(long value)(Code) | | Sets the last modification time of this ZipEntry.
Parameters: value - the last modification time as the number of milliseconds sinceJan. 1, 1970 |
toString | public String toString()(Code) | | Answers the string representation of this ZipEntry.
the string representation of this ZipEntry |
|
|