📄 zipentry.html
字号:
<B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>getName</B>()</PRE><DL><DD>Returns the name of the entry.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the name of the entry</DL></DD></DL><HR><A NAME="setTime(long)"><!-- --></A><H3>setTime</H3><PRE>public void <B>setTime</B>(long time)</PRE><DL><DD>Sets the modification time of the entry.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>time</CODE> - the entry modification time in number of milliseconds since the epoch<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/ZipEntry.html#getTime()"><CODE>getTime()</CODE></A></DL></DD></DL><HR><A NAME="getTime()"><!-- --></A><H3>getTime</H3><PRE>public long <B>getTime</B>()</PRE><DL><DD>Returns the modification time of the entry, or -1 if not specified.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the modification time of the entry, or -1 if not specified<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/ZipEntry.html#setTime(long)"><CODE>setTime(long)</CODE></A></DL></DD></DL><HR><A NAME="setSize(long)"><!-- --></A><H3>setSize</H3><PRE>public void <B>setSize</B>(long size)</PRE><DL><DD>Sets the uncompressed size of the entry data.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - the uncompressed size in bytes<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the specified size is less than 0 or greater than 0xFFFFFFFF bytes<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/ZipEntry.html#getSize()"><CODE>getSize()</CODE></A></DL></DD></DL><HR><A NAME="getSize()"><!-- --></A><H3>getSize</H3><PRE>public long <B>getSize</B>()</PRE><DL><DD>Returns the uncompressed size of the entry data, or -1 if not known.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the uncompressed size of the entry data, or -1 if not known<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/ZipEntry.html#setSize(long)"><CODE>setSize(long)</CODE></A></DL></DD></DL><HR><A NAME="getCompressedSize()"><!-- --></A><H3>getCompressedSize</H3><PRE>public long <B>getCompressedSize</B>()</PRE><DL><DD>Returns the size of the compressed entry data, or -1 if not known. In the case of a stored entry, the compressed size will be the same as the uncompressed size of the entry.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the size of the compressed entry data, or -1 if not known<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/ZipEntry.html#setCompressedSize(long)"><CODE>setCompressedSize(long)</CODE></A></DL></DD></DL><HR><A NAME="setCompressedSize(long)"><!-- --></A><H3>setCompressedSize</H3><PRE>public void <B>setCompressedSize</B>(long csize)</PRE><DL><DD>Sets the size of the compressed entry data.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>csize</CODE> - the compressed size to set to<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/ZipEntry.html#getCompressedSize()"><CODE>getCompressedSize()</CODE></A></DL></DD></DL><HR><A NAME="setCrc(long)"><!-- --></A><H3>setCrc</H3><PRE>public void <B>setCrc</B>(long crc)</PRE><DL><DD>Sets the CRC-32 checksum of the uncompressed entry data.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>crc</CODE> - the CRC-32 value<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the specified CRC-32 value is less than 0 or greater than 0xFFFFFFFF<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/ZipEntry.html#setCrc(long)"><CODE>setCrc(long)</CODE></A></DL></DD></DL><HR><A NAME="getCrc()"><!-- --></A><H3>getCrc</H3><PRE>public long <B>getCrc</B>()</PRE><DL><DD>Returns the CRC-32 checksum of the uncompressed entry data, or -1 if not known.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the CRC-32 checksum of the uncompressed entry data, or -1 if not known<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/ZipEntry.html#getCrc()"><CODE>getCrc()</CODE></A></DL></DD></DL><HR><A NAME="setMethod(int)"><!-- --></A><H3>setMethod</H3><PRE>public void <B>setMethod</B>(int method)</PRE><DL><DD>Sets the compression method for the entry.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>method</CODE> - the compression method, either STORED or DEFLATED<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the specified compression method is invalid<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/ZipEntry.html#getMethod()"><CODE>getMethod()</CODE></A></DL></DD></DL><HR><A NAME="getMethod()"><!-- --></A><H3>getMethod</H3><PRE>public int <B>getMethod</B>()</PRE><DL><DD>Returns the compression method of the entry, or -1 if not specified.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the compression method of the entry, or -1 if not specified<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/ZipEntry.html#setMethod(int)"><CODE>setMethod(int)</CODE></A></DL></DD></DL><HR><A NAME="setExtra(byte[])"><!-- --></A><H3>setExtra</H3><PRE>public void <B>setExtra</B>(byte[] extra)</PRE><DL><DD>Sets the optional extra field data for the entry.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>extra</CODE> - the extra field data bytes<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the length of the specified extra field data is greater than 0xFFFFF bytes<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/ZipEntry.html#getExtra()"><CODE>getExtra()</CODE></A></DL></DD></DL><HR><A NAME="getExtra()"><!-- --></A><H3>getExtra</H3><PRE>public byte[] <B>getExtra</B>()</PRE><DL><DD>Returns the extra field data for the entry, or null if none.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the extra field data for the entry, or null if none<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/ZipEntry.html#setExtra(byte[])"><CODE>setExtra(byte[])</CODE></A></DL></DD></DL><HR><A NAME="setComment(java.lang.String)"><!-- --></A><H3>setComment</H3><PRE>public void <B>setComment</B>(<A HREF="../../../java/lang/String.html">String</A> comment)</PRE><DL><DD>Sets the optional comment string for the entry.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>comment</CODE> - the comment string<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the length of the specified comment string is greater than 0xFFFF bytes<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/ZipEntry.html#getComment()"><CODE>getComment()</CODE></A></DL></DD></DL><HR><A NAME="getComment()"><!-- --></A><H3>getComment</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>getComment</B>()</PRE><DL><DD>Returns the comment string for the entry, or null if none.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the comment string for the entry, or null if none<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/ZipEntry.html#setComment(java.lang.String)"><CODE>setComment(String)</CODE></A></DL></DD></DL><HR><A NAME="isDirectory()"><!-- --></A><H3>isDirectory</H3><PRE>public boolean <B>isDirectory</B>()</PRE><DL><DD>Returns true if this is a directory entry. A directory entry is defined to be one whose name ends with a '/'.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if this is a directory entry</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Returns a string representation of the ZIP entry.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD>Following copied from class: <CODE>java.lang.Object</CODE></DD><DD><DL><DT><B>Returns:</B><DD>a string representation of the object.</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns the hash code value for this entry.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD>Following copied from class: <CODE>java.lang.Object</CODE></DD><DD><DL><DT><B>Returns:</B><DD>a hash code value for this object.<DT><B>See Also: </B><DD><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)"><CODE>Object.equals(java.lang.Object)</CODE></A>, <A HREF="../../../java/util/Hashtable.html"><CODE>Hashtable</CODE></A></DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>clone</B>()</PRE><DL><DD>Returns a copy of this entry.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD>Following copied from class: <CODE>java.lang.Object</CODE></DD><DD><DL><DT><B>Returns:</B><DD>a clone of this instance.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/CloneNotSupportedException.html">CloneNotSupportedException</A></CODE> - if the object's class does not support the <code>Cloneable</code> interface. Subclasses that override the <code>clone</code> method can also throw this exception to indicate that an instance cannot be cloned.<DD><CODE><A HREF="../../../java/lang/OutOfMemoryError.html">OutOfMemoryError</A></CODE> - if there is not enough memory.<DT><B>See Also: </B><DD><A HREF="../../../java/lang/Cloneable.html"><CODE>Cloneable</CODE></A></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ZipEntry.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../java/util/zip/InflaterInputStream.html"><B>PREV CLASS</B></A> <A HREF="../../../java/util/zip/ZipFile.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="ZipEntry.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -