java.util.jar.JarEntry翻译

类别:Java 点击:0 评论:0 推荐:

<!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>

本文地址:http://com.8s8s.com/it/it10223.htm