⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jarfile.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</TR></TABLE>&nbsp;<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="MANIFEST_NAME"><!-- --></A><H3>MANIFEST_NAME</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>MANIFEST_NAME</B></PRE><DL><DD>The JAR manifest file name.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="JarFile(java.lang.String)"><!-- --></A><H3>JarFile</H3><PRE>public <B>JarFile</B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;name)        throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Creates a new <code>JarFile</code> to read from the specified file <code>name</code>. The <code>JarFile</code> will be verified if it is signed.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the JAR file to be opened for reading<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/io/FileNotFoundException.html">FileNotFoundException</A></CODE> - if the file could not be found<DD><CODE><A HREF="../../../java/io/IOException.html">IOException</A></CODE> - if an I/O error has occurred</DL></DD></DL><HR><A NAME="JarFile(java.lang.String, boolean)"><!-- --></A><H3>JarFile</H3><PRE>public <B>JarFile</B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;name,               boolean&nbsp;verify)        throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Creates a new <code>JarFile</code> to read from the specified file <code>name</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the JAR file to be opened for reading<DD><CODE>verify</CODE> - whether or not to verify the JarFile if it is signed.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/io/FileNotFoundException.html">FileNotFoundException</A></CODE> - if the file could not be found<DD><CODE><A HREF="../../../java/io/IOException.html">IOException</A></CODE> - if an I/O error has occurred</DL></DD></DL><HR><A NAME="JarFile(java.io.File)"><!-- --></A><H3>JarFile</H3><PRE>public <B>JarFile</B>(<A HREF="../../../java/io/File.html">File</A>&nbsp;file)        throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Creates a new <code>JarFile</code> to read from the specified <code>File</code> object. The <code>JarFile</code> will be verified if it is signed.<DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the JAR file to be opened for reading<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/io/FileNotFoundException.html">FileNotFoundException</A></CODE> - if the file could not be found<DD><CODE><A HREF="../../../java/io/IOException.html">IOException</A></CODE> - if an I/O error has occurred</DL></DD></DL><HR><A NAME="JarFile(java.io.File, boolean)"><!-- --></A><H3>JarFile</H3><PRE>public <B>JarFile</B>(<A HREF="../../../java/io/File.html">File</A>&nbsp;file,               boolean&nbsp;verify)        throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Creates a new <code>JarFile</code> to read from the specified <code>File</code> object.<DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the JAR file to be opened for reading<DD><CODE>verify</CODE> - whether or not to verify the JarFile if it is signed.<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/io/FileNotFoundException.html">FileNotFoundException</A></CODE> - if the file could not be found<DD><CODE><A HREF="../../../java/io/IOException.html">IOException</A></CODE> - if an I/O error has occurred</DL></DD></DL><HR><A NAME="JarFile(java.io.File, boolean, int)"><!-- --></A><H3>JarFile</H3><PRE>public <B>JarFile</B>(<A HREF="../../../java/io/File.html">File</A>&nbsp;file,               boolean&nbsp;verify,               int&nbsp;mode)        throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Creates a new <code>JarFile</code> to read from the specified <code>File</code> object in the specified mode.  The mode argument must be either <tt>OPEN_READ</tt> or <tt>OPEN_READ | OPEN_DELETE</tt>.<DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the JAR file to be opened for reading<DD><CODE>verify</CODE> - whether or not to verify the JarFile if it is signed.<DD><CODE>mode</CODE> - the mode in which the file is to be opened<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/io/FileNotFoundException.html">FileNotFoundException</A></CODE> - if the file could not be found<DD><CODE><A HREF="../../../java/io/IOException.html">IOException</A></CODE> - if an I/O error has occurred<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - If the <tt>mode</tt> argument is invalid</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getManifest()"><!-- --></A><H3>getManifest</H3><PRE>public <A HREF="../../../java/util/jar/Manifest.html">Manifest</A> <B>getManifest</B>()                     throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Returns the JAR file manifest, or <code>null</code> if none.<DD><DL><DT><B>Returns:</B><DD>the JAR file manifest, or <code>null</code> if none</DL></DD></DL><HR><A NAME="getJarEntry(java.lang.String)"><!-- --></A><H3>getJarEntry</H3><PRE>public <A HREF="../../../java/util/jar/JarEntry.html">JarEntry</A> <B>getJarEntry</B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;name)</PRE><DL><DD>Returns the <code>JarEntry</code> for the given entry name or <code>null</code> if not found.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the JAR file entry name<DT><B>Returns:</B><DD>the <code>JarEntry</code> for the given entry name or         <code>null</code> if not found.<DT><B>See Also: </B><DD><A HREF="../../../java/util/jar/JarEntry.html"><CODE>JarEntry</CODE></A></DL></DD></DL><HR><A NAME="getEntry(java.lang.String)"><!-- --></A><H3>getEntry</H3><PRE>public <A HREF="../../../java/util/zip/ZipEntry.html">ZipEntry</A> <B>getEntry</B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;name)</PRE><DL><DD>Returns the <code>ZipEntry</code> for the given entry name or <code>null</code> if not found.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/util/zip/ZipFile.html#getEntry(java.lang.String)">getEntry</A></CODE> in class <CODE><A HREF="../../../java/util/zip/ZipFile.html">ZipFile</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the JAR file entry name<DT><B>Returns:</B><DD>the <code>ZipEntry</code> for the given entry name or         <code>null</code> if not found<DT><B>See Also: </B><DD><A HREF="../../../java/util/zip/ZipEntry.html"><CODE>ZipEntry</CODE></A></DL></DD></DL><HR><A NAME="entries()"><!-- --></A><H3>entries</H3><PRE>public <A HREF="../../../java/util/Enumeration.html">Enumeration</A> <B>entries</B>()</PRE><DL><DD>Returns an enumeration of the ZIP file entries.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/util/zip/ZipFile.html#entries()">entries</A></CODE> in class <CODE><A HREF="../../../java/util/zip/ZipFile.html">ZipFile</A></CODE></DL></DD><DD>Following copied from class: <CODE>java.util.zip.ZipFile</CODE></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of the ZIP file entries<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalStateException.html">IllegalStateException</A></CODE> - if the zip file has been closed</DL></DD></DL><HR><A NAME="getInputStream(java.util.zip.ZipEntry)"><!-- --></A><H3>getInputStream</H3><PRE>public <A HREF="../../../java/io/InputStream.html">InputStream</A> <B>getInputStream</B>(<A HREF="../../../java/util/zip/ZipEntry.html">ZipEntry</A>&nbsp;ze)                           throws <A HREF="../../../java/io/IOException.html">IOException</A></PRE><DL><DD>Returns an input stream for reading the contents of the specified ZIP file entry.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/util/zip/ZipFile.html#getInputStream(java.util.zip.ZipEntry)">getInputStream</A></CODE> in class <CODE><A HREF="../../../java/util/zip/ZipFile.html">ZipFile</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ze</CODE> - the zip file entry<DT><B>Returns:</B><DD>an input stream for reading the contents of the specified         ZIP file entry<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/util/zip/ZipException.html">ZipException</A></CODE> - if a ZIP format error has occurred<DD><CODE><A HREF="../../../java/io/IOException.html">IOException</A></CODE> - if an I/O error has occurred<DD><CODE><A HREF="../../../java/lang/SecurityException.html">SecurityException</A></CODE> - if any of the JarFile entries are incorrectly signed.</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/JarFile.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../java/util/jar/JarEntry.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/util/jar/JarInputStream.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>  &nbsp;&nbsp;<A HREF="JarFile.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -