📄 zipfile.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/util/zip/ZipFile.html#LOCNAM">LOCNAM</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/util/zip/ZipFile.html#LOCSIG">LOCSIG</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="../../../java/util/zip/ZipFile.html#LOCSIZ">LOCSIZ</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="../../../java/util/zip/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="../../../java/util/zip/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="../../../java/util/zip/ZipFile.html#OPEN_DELETE">OPEN_DELETE</A></B></CODE><BR> Mode flag to open a zip file and mark it for deletion.</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="../../../java/util/zip/ZipFile.html#OPEN_READ">OPEN_READ</A></B></CODE><BR> Mode flag to open a zip file for reading.</TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/util/zip/ZipFile.html#ZipFile(java.io.File)">ZipFile</A></B>(<A HREF="../../../java/io/File.html">File</A> file)</CODE><BR> Opens a ZIP file for reading given the specified File object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/util/zip/ZipFile.html#ZipFile(java.io.File, int)">ZipFile</A></B>(<A HREF="../../../java/io/File.html">File</A> file, int mode)</CODE><BR> Opens a new <code>ZipFile</code> to read from the specified <code>File</code> object in the specified mode.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/util/zip/ZipFile.html#ZipFile(java.lang.String)">ZipFile</A></B>(<A HREF="../../../java/lang/String.html">String</A> name)</CODE><BR> Opens a zip file for reading.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></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="../../../java/util/zip/ZipFile.html#close()">close</A></B>()</CODE><BR> Closes the ZIP file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/util/Enumeration.html">Enumeration</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/util/zip/ZipFile.html#entries()">entries</A></B>()</CODE><BR> Returns an enumeration of the ZIP file entries.</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="../../../java/util/zip/ZipFile.html#finalize()">finalize</A></B>()</CODE><BR> Ensures that the <code>close</code> method of this ZIP file is called when there are no more references to it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/util/zip/ZipEntry.html">ZipEntry</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/util/zip/ZipFile.html#getEntry(java.lang.String)">getEntry</A></B>(<A HREF="../../../java/lang/String.html">String</A> name)</CODE><BR> Returns the zip file entry for the specified name, or null if not found.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/io/InputStream.html">InputStream</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/util/zip/ZipFile.html#getInputStream(java.util.zip.ZipEntry)">getInputStream</A></B>(<A HREF="../../../java/util/zip/ZipEntry.html">ZipEntry</A> entry)</CODE><BR> Returns an input stream for reading the contents of the specified zip file entry.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/util/zip/ZipFile.html#getName()">getName</A></B>()</CODE><BR> Returns the path name of the ZIP file.</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="../../../java/util/zip/ZipFile.html#size()">size</A></B>()</CODE><BR> Returns the number of entries in the ZIP file.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="OPEN_READ"><!-- --></A><H3>OPEN_READ</H3><PRE>public static final int <B>OPEN_READ</B></PRE><DL><DD>Mode flag to open a zip file for reading.</DL><HR><A NAME="OPEN_DELETE"><!-- --></A><H3>OPEN_DELETE</H3><PRE>public static final int <B>OPEN_DELETE</B></PRE><DL><DD>Mode flag to open a zip file and mark it for deletion. The file will be deleted some time between the moment that it is opened and the moment that it is closed, but its contents will remain accessible via the <tt>ZipFile</tt> object until either the close method is invoked or the virtual machine exits.</DL><HR><A NAME="LOCSIG"><!-- --></A><H3>LOCSIG</H3><PRE>public static final long <B>LOCSIG</B></PRE><DL></DL><HR><A NAME="EXTSIG"><!-- --></A><H3>EXTSIG</H3><PRE>public static final long <B>EXTSIG</B></PRE><DL></DL><HR><A NAME="CENSIG"><!-- --></A><H3>CENSIG</H3><PRE>public static final long <B>CENSIG</B></PRE><DL></DL><HR><A NAME="ENDSIG"><!-- --></A><H3>ENDSIG</H3><PRE>public static final long <B>ENDSIG</B></PRE><DL></DL><HR><A NAME="LOCHDR"><!-- --></A><H3>LOCHDR</H3><PRE>public static final int <B>LOCHDR</B></PRE><DL></DL><HR><A NAME="EXTHDR"><!-- --></A><H3>EXTHDR</H3><PRE>public static final int <B>EXTHDR</B></PRE><DL></DL><HR><A NAME="CENHDR"><!-- --></A><H3>CENHDR</H3><PRE>public static final int <B>CENHDR</B></PRE><DL></DL><HR><A NAME="ENDHDR"><!-- --></A><H3>ENDHDR</H3><PRE>public static final int <B>ENDHDR</B></PRE><DL></DL><HR><A NAME="LOCVER"><!-- --></A><H3>LOCVER</H3><PRE>public static final int <B>LOCVER</B></PRE><DL></DL><HR><A NAME="LOCFLG"><!-- --></A><H3>LOCFLG</H3><PRE>public static final int <B>LOCFLG</B></PRE><DL></DL><HR><A NAME="LOCHOW"><!-- --></A><H3>LOCHOW</H3><PRE>public static final int <B>LOCHOW</B></PRE><DL></DL><HR><A NAME="LOCTIM"><!-- --></A><H3>LOCTIM</H3><PRE>public static final int <B>LOCTIM</B></PRE><DL></DL><HR><A NAME="LOCCRC"><!-- --></A><H3>LOCCRC</H3><PRE>public static final int <B>LOCCRC</B></PRE><DL></DL><HR><A NAME="LOCSIZ"><!-- --></A><H3>LOCSIZ</H3><PRE>public static final int <B>LOCSIZ</B></PRE><DL></DL><HR><A NAME="LOCLEN"><!-- --></A><H3>LOCLEN</H3><PRE>public static final int <B>LOCLEN</B></PRE><DL></DL><HR><A NAME="LOCNAM"><!-- --></A><H3>LOCNAM</H3><PRE>public static final int <B>LOCNAM</B></PRE><DL></DL><HR><A NAME="LOCEXT"><!-- --></A><H3>LOCEXT</H3><PRE>public static final int <B>LOCEXT</B></PRE><DL></DL><HR><A NAME="EXTCRC"><!-- --></A><H3>EXTCRC</H3><PRE>public static final int <B>EXTCRC</B></PRE><DL></DL><HR><A NAME="EXTSIZ"><!-- --></A><H3>EXTSIZ</H3><PRE>public static final int <B>EXTSIZ</B></PRE><DL></DL><HR><A NAME="EXTLEN"><!-- --></A><H3>EXTLEN</H3><PRE>public static final int <B>EXTLEN</B></PRE><DL></DL><HR><A NAME="CENVEM"><!-- --></A><H3>CENVEM</H3><PRE>public static final int <B>CENVEM</B></PRE><DL></DL><HR><A NAME="CENVER"><!-- --></A><H3>CENVER</H3><PRE>public static final int <B>CENVER</B></PRE><DL></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -