分享
 
 
 

java.util.jar.JarEntry翻译

王朝java/jsp·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<!--NewPage-->

<HTML>

<HEAD>

<!-- Generated by javadoc (build 1.4.2-rc) on Fri Jun 13 00:14:46 PDT 2003 -->

<TITLE>

JarEntry (Java 2 Platform SE v1.4.2)

</TITLE>

<META NAME="keywords" CONTENT="java.util.jar.JarEntry class">

<META NAME="keywords" CONTENT="getAttributes()">

<META NAME="keywords" CONTENT="getCertificates()">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">

function windowTitle()

{

parent.document.title="JarEntry (Java 2 Platform SE v1.4.2)";

}

</SCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">

<!-- ========= START OF TOP NAVBAR ======= -->

<A NAME="navbar_top"><!-- --></A>

<A HREF="#skip-navbar_top" title="Skip navigation links"></A>

<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">

<TR>

<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">

<A NAME="navbar_top_firstrow"><!-- --></A>

<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">

<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/JarEntry.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.4.2</b></EM>

</TD>

</TR>

<TR>

<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">

&nbsp;<A HREF="../../../java/util/jar/Attributes.Name.html" title="class in java.util.jar"><B>PREV CLASS</B></A>&nbsp;

&nbsp;<A HREF="../../../java/util/jar/JarFile.html" title="class in java.util.jar"><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="JarEntry.html" target="_top"><B>NO FRAMES</B></A> &nbsp;

&nbsp;<SCRIPT type="text/javascript">

<!--

if(window==top) {

document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');

}

//-->

</SCRIPT>

<NOSCRIPT>

<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>

</NOSCRIPT>

</FONT></TD>

</TR>

<TR>

<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">

SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_java.util.zip.ZipEntry">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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>

</TR>

</TABLE>

<A NAME="skip-navbar_top"></A>

<!-- ========= END OF TOP NAVBAR ========= -->

<HR>

<!-- ======== START OF CLASS DATA ======== -->

<H2>

<FONT SIZE="-1">

java.util.jar</FONT>

<BR>

Class JarEntry</H2>

<PRE>

<A HREF="../../../java/lang/Object.html" title="class in java.lang">java.lang.Object</A>

<IMG SRC="../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../java/util/zip/ZipEntry.html" title="class in java.util.zip">java.util.zip.ZipEntry</A>

<IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>java.util.jar.JarEntry</B>

</PRE>

<DL>

<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../java/lang/Cloneable.html" title="interface in java.lang">Cloneable</A>, java.util.zip.ZipConstants</DD>

</DL>

<HR>

<DL>

<DT>public class <B>JarEntry</B><DT>extends <A HREF="../../../java/util/zip/ZipEntry.html" title="class in java.util.zip">ZipEntry</A></DL>

<P>

This class is used to represent a JAR file entry.

该类用来表示JAR文件项。

<P>

<P>

<HR>

<P>

<!-- ======== NESTED CLASS SUMMARY ======== -->

<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>

<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">

<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">

<TD COLSPAN=2><FONT SIZE="+2">

<B>Field Summary</B></FONT></TD>

</TR>

</TABLE>

&nbsp;<A NAME="fields_inherited_from_class_java.util.zip.ZipEntry"><!-- --></A>

<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">

<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">

<TD><B>Fields inherited from class java.util.zip.<A HREF="../../../java/util/zip/ZipEntry.html" title="class in java.util.zip">ZipEntry</A></B></TD>

</TR>

<TR BGCOLOR="white" CLASS="TableRowColor">

<TD><CODE><A HREF="../../../java/util/zip/ZipEntry.html#CENATT">CENATT</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENATX">CENATX</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENCOM">CENCOM</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENCRC">CENCRC</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENDSK">CENDSK</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENEXT">CENEXT</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENFLG">CENFLG</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENHDR">CENHDR</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENHOW">CENHOW</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENLEN">CENLEN</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENNAM">CENNAM</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENOFF">CENOFF</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENSIG">CENSIG</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENSIZ">CENSIZ</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENTIM">CENTIM</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENVEM">CENVEM</A>, <A HREF="../../../java/util/zip/ZipEntry.html#CENVER">CENVER</A>, <A HREF="../../../java/util/zip/ZipEntry.html#DEFLATED">DEFLATED</A>, <A HREF="../../../java/util/zip/ZipEntry.html#ENDCOM">ENDCOM</A>, <A HREF="../../../java/util/zip/ZipEntry.html#ENDHDR">ENDHDR</A>, <A HREF="../../../java/util/zip/ZipEntry.html#ENDOFF">ENDOFF</A>, <A HREF="../../../java/util/zip/ZipEntry.html#ENDSIG">ENDSIG</A>, <A HREF="../../../java/util/zip/ZipEntry.html#ENDSIZ">ENDSIZ</A>, <A HREF="../../../java/util/zip/ZipEntry.html#ENDSUB">ENDSUB</A>, <A HREF="../../../java/util/zip/ZipEntry.html#ENDTOT">ENDTOT</A>, <A HREF="../../../java/util/zip/ZipEntry.html#EXTCRC">EXTCRC</A>, <A HREF="../../../java/util/zip/ZipEntry.html#EXTHDR">EXTHDR</A>, <A HREF="../../../java/util/zip/ZipEntry.html#EXTLEN">EXTLEN</A>, <A HREF="../../../java/util/zip/ZipEntry.html#EXTSIG">EXTSIG</A>, <A HREF="../../../java/util/zip/ZipEntry.html#EXTSIZ">EXTSIZ</A>, <A HREF="../../../java/util/zip/ZipEntry.html#LOCCRC">LOCCRC</A>, <A HREF="../../../java/util/zip/ZipEntry.html#LOCEXT">LOCEXT</A>, <A HREF="../../../java/util/zip/ZipEntry.html#LOCFLG">LOCFLG</A>, <A HREF="../../../java/util/zip/ZipEntry.html#LOCHDR">LOCHDR</A>, <A HREF="../../../java/util/zip/ZipEntry.html#LOCHOW">LOCHOW</A>, <A HREF="../../../java/util/zip/ZipEntry.html#LOCLEN">LOCLEN</A>, <A HREF="../../../java/util/zip/ZipEntry.html#LOCNAM">LOCNAM</A>, <A HREF="../../../java/util/zip/ZipEntry.html#LOCSIG">LOCSIG</A>, <A HREF="../../../java/util/zip/ZipEntry.html#LOCSIZ">LOCSIZ</A>, <A HREF="../../../java/util/zip/ZipEntry.html#LOCTIM">LOCTIM</A>, <A HREF="../../../java/util/zip/ZipEntry.html#LOCVER">LOCVER</A>, <A HREF="../../../java/util/zip/ZipEntry.html#STORED">STORED</A></CODE></TD>

</TR>

</TABLE>

&nbsp;

<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>

<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">

<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/jar/JarEntry.html#JarEntry(java.util.jar.JarEntry)">JarEntry</A></B>(<A HREF="../../../java/util/jar/JarEntry.html" title="class in java.util.jar">JarEntry</A>&nbsp;je)</CODE>

<BR>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>JarEntry</code> with fields taken from the

specified <code>JarEntry</code> object. 创建一个从指定JarEntry对象获取域的JarEntry。</TD>

</TR>

<TR BGCOLOR="white" CLASS="TableRowColor">

<TD><CODE><B><A HREF="../../../java/util/jar/JarEntry.html#JarEntry(java.lang.String)">JarEntry</A></B>(<A HREF="../../../java/lang/String.html" title="class in java.lang">String</A>&nbsp;name)</CODE>

<BR>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>JarEntry</code> for the specified JAR file

entry name. 创建一个指定JAR文件项名称的JarEntry。</TD>

</TR>

<TR BGCOLOR="white" CLASS="TableRowColor">

<TD><CODE><B><A HREF="../../../java/util/jar/JarEntry.html#JarEntry(java.util.zip.ZipEntry)">JarEntry</A></B>(<A HREF="../../../java/util/zip/ZipEntry.html" title="class in java.util.zip">ZipEntry</A>&nbsp;ze)</CODE>

<BR>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>JarEntry</code> with fields taken from the

specified <code>ZipEntry</code> object. 创建一个从指定ZipEntry对象获取域的JarEntry。</TD>

</TR>

</TABLE>

&nbsp;

<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>

<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">

<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>&nbsp;<A HREF="../../../java/util/jar/Attributes.html" title="class in java.util.jar">Attributes</A></CODE></FONT></TD>

<TD><CODE><B><A HREF="../../../java/util/jar/JarEntry.html#getAttributes()">getAttributes</A></B>()</CODE>

<BR>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <code>Manifest</code> <code>Attributes</code> for this

entry, or <code>null</code> if none. 返回该项的Manifest属性,如果没有返回null。</TD>

</TR>

<TR BGCOLOR="white" CLASS="TableRowColor">

<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">

<CODE>&nbsp;<A HREF="../../../java/security/cert/Certificate.html" title="class in java.security.cert">Certificate</A>[]</CODE></FONT></TD>

<TD><CODE><B><A HREF="../../../java/util/jar/JarEntry.html#getCertificates()">getCertificates</A></B>()</CODE>

<BR>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <code>Certificate</code> objects for this entry, or

<code>null</code> if none. 返回该项的Certificate对象,如果没有返回null。</TD>

</TR>

</TABLE>

&nbsp;<A NAME="methods_inherited_from_class_java.util.zip.ZipEntry"><!-- --></A>

<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">

<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">

<TD><B>Methods inherited from class java.util.zip.<A HREF="../../../java/util/zip/ZipEntry.html" title="class in java.util.zip">ZipEntry</A></B></TD>

</TR>

<TR BGCOLOR="white" CLASS="TableRowColor">

<TD><CODE><A HREF="../../../java/util/zip/ZipEntry.html#clone()">clone</A>, <A HREF="../../../java/util/zip/ZipEntry.html#getComment()">getComment</A>, <A HREF="../../../java/util/zip/ZipEntry.html#getCompressedSize()">getCompressedSize</A>, <A HREF="../../../java/util/zip/ZipEntry.html#getCrc()">getCrc</A>, <A HREF="../../../java/util/zip/ZipEntry.html#getExtra()">getExtra</A>, <A HREF="../../../java/util/zip/ZipEntry.html#getMethod()">getMethod</A>, <A HREF="../../../java/util/zip/ZipEntry.html#getName()">getName</A>, <A HREF="../../../java/util/zip/ZipEntry.html#getSize()">getSize</A>, <A HREF="../../../java/util/zip/ZipEntry.html#getTime()">getTime</A>, <A HREF="../../../java/util/zip/ZipEntry.html#hashCode()">hashCode</A>, <A HREF="../../../java/util/zip/ZipEntry.html#isDirectory()">isDirectory</A>, <A HREF="../../../java/util/zip/ZipEntry.html#setComment(java.lang.String)">setComment</A>, <A HREF="../../../java/util/zip/ZipEntry.html#setCompressedSize(long)">setCompressedSize</A>, <A HREF="../../../java/util/zip/ZipEntry.html#setCrc(long)">setCrc</A>, <A HREF="../../../java/util/zip/ZipEntry.html#setExtra(byte[])">setExtra</A>, <A HREF="../../../java/util/zip/ZipEntry.html#setMethod(int)">setMethod</A>, <A HREF="../../../java/util/zip/ZipEntry.html#setSize(long)">setSize</A>, <A HREF="../../../java/util/zip/ZipEntry.html#setTime(long)">setTime</A>, <A HREF="../../../java/util/zip/ZipEntry.html#toString()">toString</A></CODE></TD>

</TR>

</TABLE>

&nbsp;<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">

<TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html" title="class in java.lang">Object</A></B></TD>

</TR>

<TR BGCOLOR="white" CLASS="TableRowColor">

<TD><CODE><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</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#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>

&nbsp;

<P>

<!-- ============ FIELD DETAIL =========== -->

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>

<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">

<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">

<TD COLSPAN=1><FONT SIZE="+2">

<B>Constructor Detail</B></FONT></TD>

</TR>

</TABLE>

<A NAME="JarEntry(java.lang.String)"><!-- --></A><H3>

JarEntry</H3>

<PRE>

public <B>JarEntry</B>(<A HREF="../../../java/lang/String.html" title="class in java.lang">String</A>&nbsp;name)</PRE>

<DL>

<DD>Creates a new <code>JarEntry</code> for the specified JAR file

entry name. 创建一个指定JAR文件项名称的JarEntry。

<P>

<DT><B>Parameters:</B><DD><CODE>name</CODE> - the JAR file entry name JAR文件项名称

<DT><B>Throws:</B>

<DD><CODE><A HREF="../../../java/lang/NullPointerException.html" title="class in java.lang">NullPointerException</A></CODE> - if the entry name is <code>null</code> 项名称为null时抛出

<DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html" title="class in java.lang">IllegalArgumentException</A></CODE> - if the entry name is longer than

0xFFFF bytes. 如果项名称大于0xFFFF字节时抛出。</DL>

<HR>

<A NAME="JarEntry(java.util.zip.ZipEntry)"><!-- --></A><H3>

JarEntry</H3>

<PRE>

public <B>JarEntry</B>(<A HREF="../../../java/util/zip/ZipEntry.html" title="class in java.util.zip">ZipEntry</A>&nbsp;ze)</PRE>

<DL>

<DD>Creates a new <code>JarEntry</code> with fields taken from the

specified <code>ZipEntry</code> object. 创建一个从指定ZipEntry对象获取域的JarEntry。

<P>

<DT><B>Parameters:</B><DD><CODE>ze</CODE> - the <code>ZipEntry</code> object to create the

<code>JarEntry</code> from 从该ZipEntry对象创建JarEntry</DL>

<HR>

<A NAME="JarEntry(java.util.jar.JarEntry)"><!-- --></A><H3>

JarEntry</H3>

<PRE>

public <B>JarEntry</B>(<A HREF="../../../java/util/jar/JarEntry.html" title="class in java.util.jar">JarEntry</A>&nbsp;je)</PRE>

<DL>

<DD>Creates a new <code>JarEntry</code> with fields taken from the

specified <code>JarEntry</code> object. 创建一个从指定JarEntry对象获取域的JarEntry。

<P>

<DT><B>Parameters:</B><DD><CODE>je</CODE> - the <code>JarEntry</code> to copy 用于拷贝的JarEntry</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>

<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">

<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">

<TD COLSPAN=1><FONT SIZE="+2">

<B>Method Detail</B></FONT></TD>

</TR>

</TABLE>

<A NAME="getAttributes()"><!-- --></A><H3>

getAttributes</H3>

<PRE>

public <A HREF="../../../java/util/jar/Attributes.html" title="class in java.util.jar">Attributes</A> <B>getAttributes</B>()

throws <A HREF="../../../java/io/IOException.html" title="class in java.io">IOException</A></PRE>

<DL>

<DD>Returns the <code>Manifest</code> <code>Attributes</code> for this

entry, or <code>null</code> if none. 返回该项的Manifest属性,如果没有返回null。

<P>

<DD><DL>

<DT><B>Returns:</B><DD>the <code>Manifest</code> <code>Attributes</code> for this

entry, or <code>null</code> if none 该项的Manifest属性,如果没有返回null

<DT><B>Throws:</B>

<DD><CODE><A HREF="../../../java/io/IOException.html" title="class in java.io">IOException</A></CODE></DL>

</DD>

</DL>

<HR>

<A NAME="getCertificates()"><!-- --></A><H3>

getCertificates</H3>

<PRE>

public <A HREF="../../../java/security/cert/Certificate.html" title="class in java.security.cert">Certificate</A>[] <B>getCertificates</B>()</PRE>

<DL>

<DD>Returns the <code>Certificate</code> objects for this entry, or

<code>null</code> if none. This method can only be called once

the <code>JarEntry</code> has been completely verified by reading

from the entry input stream until the end of the stream has been

reached. Otherwise, this method will return <code>null</code>.

返回该项的Certificate对象,如果没有返回null。此方法只在JarEntry已被完全核实后调用一次,

通过从项输入流读取直到流结束。否则,方法返回null。

<p>The returned certificate array comprises all the signer certificates

that were used to verify this entry. Each signer certificate is

followed by its supporting certificate chain (which may be empty).

Each signer certificate and its supporting certificate chain are ordered

bottom-to-top (i.e., with the signer certificate first and the (root)

certificate authority last).

返回的认证数组由用于核实该项的所有签名认证组成,每一个签名认证后伴随支持认证链(可以为空),

每一个签名认证及其支持认证链按从下到上的顺序排列(即,签名认证在前,认证授权在后)。

<P>

<DD><DL>

<DT><B>Returns:</B><DD>the <code>Certificate</code> objects for this entry, or

<code>null</code> if none. 该项的Certificate对象,如果没有返回null。</DL>

</DD>

</DL>

<!-- ========= END OF CLASS DATA ========= -->

<HR>

<!-- ======= START OF BOTTOM NAVBAR ====== -->

<A NAME="navbar_bottom"><!-- --></A>

<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>

<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">

<TR>

<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">

<A NAME="navbar_bottom_firstrow"><!-- --></A>

<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">

<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/JarEntry.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.4.2</b></EM>

</TD>

</TR>

<TR>

<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">

&nbsp;<A HREF="../../../java/util/jar/Attributes.Name.html" title="class in java.util.jar"><B>PREV CLASS</B></A>&nbsp;

&nbsp;<A HREF="../../../java/util/jar/JarFile.html" title="class in java.util.jar"><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="JarEntry.html" target="_top"><B>NO FRAMES</B></A> &nbsp;

&nbsp;<SCRIPT type="text/javascript">

<!--

if(window==top) {

document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');

}

//-->

</SCRIPT>

<NOSCRIPT>

<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>

</NOSCRIPT>

</FONT></TD>

</TR>

<TR>

<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">

SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_java.util.zip.ZipEntry">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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>

</TR>

</TABLE>

<A NAME="skip-navbar_bottom"></A>

<!-- ======== END OF BOTTOM 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="../../../../relnotes/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>Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../../../../relnotes/license.html">license terms</a>. Also see the <a href="http://java.sun.com/docs/redist.html">documentation redistribution policy</a>.</font>

</BODY>

</HTML>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有