zipfile.html
来自「j2se5-api-zh,java文档的中文版本」· HTML 代码 · 共 1,279 行 · 第 1/3 页
HTML
1,279 行
<CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="ZipFile.html#LOCTIM">LOCTIM</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="ZipFile.html#LOCVER">LOCVER</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="ZipFile.html#OPEN_DELETE">OPEN_DELETE</A></B></CODE><BR> 打开 ZIP 文件并将其标记为删除的模式标志。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="ZipFile.html#OPEN_READ">OPEN_READ</A></B></CODE><BR> 打开 ZIP 文件进行阅读的模式标志。</TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>构造方法摘要</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="ZipFile.html#ZipFile(java.io.File)">ZipFile</A></B>(java.io.File file)</CODE><BR> 打开供阅读的 ZIP 文件,由指定的 File 对象给出。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="ZipFile.html#ZipFile(java.io.File, int)">ZipFile</A></B>(java.io.File file, int mode)</CODE><BR> 打开新的 <code>ZipFile</code> 以使用指定模式从指定 <code>File</code> 对象读取。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="ZipFile.html#ZipFile(java.lang.String)">ZipFile</A></B>(<A HREF="../../lang/String.html" title="java.lang 中的类">String</A> name)</CODE><BR> 打开 ZIP 文件进行阅读。</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>方法摘要</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="ZipFile.html#close()">close</A></B>()</CODE><BR> 关闭 ZIP 文件。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../Enumeration.html" title="java.util 中的接口">Enumeration</A><? extends <A HREF="ZipEntry.html" title="java.util.zip 中的类">ZipEntry</A>></CODE></FONT></TD><TD><CODE><B><A HREF="ZipFile.html#entries()">entries</A></B>()</CODE><BR> 返回 ZIP 文件条目的枚举。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="ZipFile.html#finalize()">finalize</A></B>()</CODE><BR> 确保不再引用此 ZIP 文件时调用它的 <code>close</code> 方法。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="ZipEntry.html" title="java.util.zip 中的类">ZipEntry</A></CODE></FONT></TD><TD><CODE><B><A HREF="ZipFile.html#getEntry(java.lang.String)">getEntry</A></B>(<A HREF="../../lang/String.html" title="java.lang 中的类">String</A> name)</CODE><BR> 返回指定名称的 ZIP 文件条目;如果未找到,则返回 null。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.io.InputStream</CODE></FONT></TD><TD><CODE><B><A HREF="ZipFile.html#getInputStream(java.util.zip.ZipEntry)">getInputStream</A></B>(<A HREF="ZipEntry.html" title="java.util.zip 中的类">ZipEntry</A> entry)</CODE><BR> 返回输入流以读取指定 ZIP 文件条目的内容。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../lang/String.html" title="java.lang 中的类">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="ZipFile.html#getName()">getName</A></B>()</CODE><BR> 返回 ZIP 文件的路径名。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="ZipFile.html#size()">size</A></B>()</CODE><BR> 返回 ZIP 文件中的条目数。</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>从类 java.lang.<A HREF="../../lang/Object.html" title="java.lang 中的类">Object</A> 继承的方法</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../lang/Object.html#clone()">clone</A>, <A HREF="../../lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../lang/Object.html#getClass()">getClass</A>, <A HREF="../../lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../lang/Object.html#notify()">notify</A>, <A HREF="../../lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../lang/Object.html#toString()">toString</A>, <A HREF="../../lang/Object.html#wait()">wait</A>, <A HREF="../../lang/Object.html#wait(long)">wait</A>, <A HREF="../../lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>字段详细信息</B></FONT></TH></TR></TABLE><A NAME="OPEN_READ"><!-- --></A><H3>OPEN_READ</H3><PRE>public static final int <B>OPEN_READ</B></PRE><DL><DD>打开 ZIP 文件进行阅读的模式标志。<P><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.OPEN_READ">常量字段值</A></DL></DL><HR><A NAME="OPEN_DELETE"><!-- --></A><H3>OPEN_DELETE</H3><PRE>public static final int <B>OPEN_DELETE</B></PRE><DL><DD>打开 ZIP 文件并将其标记为删除的模式标志。在打开文件和关闭文件之间的某个时间,该文件将被删除,但是其内容仍可通过 <tt>ZipFile</tt> 对象访问,直到调用关闭方法或虚拟机退出为止。<P><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.OPEN_DELETE">常量字段值</A></DL></DL><HR><A NAME="LOCSIG"><!-- --></A><H3>LOCSIG</H3><PRE>public static final long <B>LOCSIG</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.LOCSIG">常量字段值</A></DL></DL><HR><A NAME="EXTSIG"><!-- --></A><H3>EXTSIG</H3><PRE>public static final long <B>EXTSIG</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.EXTSIG">常量字段值</A></DL></DL><HR><A NAME="CENSIG"><!-- --></A><H3>CENSIG</H3><PRE>public static final long <B>CENSIG</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.CENSIG">常量字段值</A></DL></DL><HR><A NAME="ENDSIG"><!-- --></A><H3>ENDSIG</H3><PRE>public static final long <B>ENDSIG</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.ENDSIG">常量字段值</A></DL></DL><HR><A NAME="LOCHDR"><!-- --></A><H3>LOCHDR</H3><PRE>public static final int <B>LOCHDR</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.LOCHDR">常量字段值</A></DL></DL><HR><A NAME="EXTHDR"><!-- --></A><H3>EXTHDR</H3><PRE>public static final int <B>EXTHDR</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.EXTHDR">常量字段值</A></DL></DL><HR><A NAME="CENHDR"><!-- --></A><H3>CENHDR</H3><PRE>public static final int <B>CENHDR</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.CENHDR">常量字段值</A></DL></DL><HR><A NAME="ENDHDR"><!-- --></A><H3>ENDHDR</H3><PRE>public static final int <B>ENDHDR</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.ENDHDR">常量字段值</A></DL></DL><HR><A NAME="LOCVER"><!-- --></A><H3>LOCVER</H3><PRE>public static final int <B>LOCVER</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.LOCVER">常量字段值</A></DL></DL><HR><A NAME="LOCFLG"><!-- --></A><H3>LOCFLG</H3><PRE>public static final int <B>LOCFLG</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.LOCFLG">常量字段值</A></DL></DL><HR><A NAME="LOCHOW"><!-- --></A><H3>LOCHOW</H3><PRE>public static final int <B>LOCHOW</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.LOCHOW">常量字段值</A></DL></DL><HR><A NAME="LOCTIM"><!-- --></A><H3>LOCTIM</H3><PRE>public static final int <B>LOCTIM</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.LOCTIM">常量字段值</A></DL></DL><HR><A NAME="LOCCRC"><!-- --></A><H3>LOCCRC</H3><PRE>public static final int <B>LOCCRC</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.LOCCRC">常量字段值</A></DL></DL><HR><A NAME="LOCSIZ"><!-- --></A><H3>LOCSIZ</H3><PRE>public static final int <B>LOCSIZ</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.LOCSIZ">常量字段值</A></DL></DL><HR><A NAME="LOCLEN"><!-- --></A><H3>LOCLEN</H3><PRE>public static final int <B>LOCLEN</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.LOCLEN">常量字段值</A></DL></DL><HR><A NAME="LOCNAM"><!-- --></A><H3>LOCNAM</H3><PRE>public static final int <B>LOCNAM</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.LOCNAM">常量字段值</A></DL></DL><HR><A NAME="LOCEXT"><!-- --></A><H3>LOCEXT</H3><PRE>public static final int <B>LOCEXT</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.LOCEXT">常量字段值</A></DL></DL><HR><A NAME="EXTCRC"><!-- --></A><H3>EXTCRC</H3><PRE>public static final int <B>EXTCRC</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.EXTCRC">常量字段值</A></DL></DL><HR><A NAME="EXTSIZ"><!-- --></A><H3>EXTSIZ</H3><PRE>public static final int <B>EXTSIZ</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.EXTSIZ">常量字段值</A></DL></DL><HR><A NAME="EXTLEN"><!-- --></A><H3>EXTLEN</H3><PRE>public static final int <B>EXTLEN</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.EXTLEN">常量字段值</A></DL></DL><HR><A NAME="CENVEM"><!-- --></A><H3>CENVEM</H3><PRE>public static final int <B>CENVEM</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.CENVEM">常量字段值</A></DL></DL><HR><A NAME="CENVER"><!-- --></A><H3>CENVER</H3><PRE>public static final int <B>CENVER</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.CENVER">常量字段值</A></DL></DL><HR><A NAME="CENFLG"><!-- --></A><H3>CENFLG</H3><PRE>public static final int <B>CENFLG</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.CENFLG">常量字段值</A></DL></DL><HR><A NAME="CENHOW"><!-- --></A><H3>CENHOW</H3><PRE>public static final int <B>CENHOW</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.CENHOW">常量字段值</A></DL></DL><HR><A NAME="CENTIM"><!-- --></A><H3>CENTIM</H3><PRE>public static final int <B>CENTIM</B></PRE><DL><DL><DT><B>另请参见:</B><DD><A HREF="../../../constant-values.html#java.util.zip.ZipFile.CENTIM">常量字段值</A></DL></DL><HR><A NAME="CENCRC"><!-- --></A><H3>CENCRC</H3><PRE>public static final int <B>CENCRC</B></PRE><DL>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?