public class JarEntry 
  extends ZipEntry 
| java.lang.Object | ||
| java.util.zip.ZipEntry | ||
| java.util.jar.JarEntry | ||
该类用于表示JAR文件条目。
| Inherited constants | 
|---|
|  From class  java.util.zip.ZipEntry  | 
| Public constructors | |
|---|---|
|  JarEntry(String name) 为指定的JAR文件条目名称创建一个新的  | |
|  JarEntry(ZipEntry ze) 创建一个新的  | |
|  JarEntry(JarEntry je) 创建一个新的  | |
| 公共方法(Public methods) | |
|---|---|
|  Attributes |  getAttributes() 如果没有,则返回  | 
|  Certificate[] |  getCertificates() 返回  | 
|  CodeSigner[] |  getCodeSigners() 返回  | 
| 继承方法(Inherited methods) | |
|---|---|
|  From class  java.util.zip.ZipEntry  | |
|  From class  java.lang.Object  | |
JarEntry (String name)
为指定的JAR文件条目名称创建一个新的 JarEntry 。
| 参数(Parameters) | |
|---|---|
| name | String: the JAR file entry name | 
| 抛出异常(Throws) | |
|---|---|
| NullPointerException | if the entry name is null | 
| IllegalArgumentException | if the entry name is longer than 0xFFFF bytes. | 
JarEntry (ZipEntry ze)
创建一个新的 JarEntry其中的字段来自指定的 ZipEntry对象。
| 参数(Parameters) | |
|---|---|
| ze | ZipEntry: theZipEntryobject to create theJarEntryfrom | 
JarEntry (JarEntry je)
创建一个新的 JarEntry其中的字段来自指定的 JarEntry对象。
| 参数(Parameters) | |
|---|---|
| je | JarEntry: theJarEntryto copy | 
Attributes getAttributes ()
如果没有,则返回 Manifest Attributes或 null 。
| 返回(Returns) | |
|---|---|
| Attributes | the ManifestAttributesfor this entry, ornullif none | 
| 抛出异常(Throws) | |
|---|---|
| IOException | |
Certificate[] getCertificates ()
返回Certificate对象此条,或null如果没有。 只有在JarEntry已通过从输入输入流中读取完成验证后才能调用此方法,直到到达流的末尾。 否则,此方法将返回null 。
返回的证书数组包含用于验证此条目的所有签署者证书。 每个签署者证书后面都有其支持证书链(可能为空)。 每个签署者证书及其支持证书链按照从下到上的顺序排列(即签署者证书第一个和(根)证书颁发机构最后)。
| 返回(Returns) | |
|---|---|
| Certificate[] | the Certificateobjects for this entry, ornullif none. | 
CodeSigner[] getCodeSigners ()
返回CodeSigner对象此条,或null如果没有。 只有当JarEntry已经通过从输入输入流中读取直到流结束已经完全验证时才能调用该方法。 否则,此方法将返回null 。
返回的数组包含所有已签名此条目的代码签名者。
| 返回(Returns) | |
|---|---|
| CodeSigner[] | the CodeSignerobjects for this entry, ornullif none. |