This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.util.jar
class JarEntry

java.lang.Object extended by java.util.zip.ZipEntry extended by java.util.jar.JarEntry
All Implemented Interfaces:
Cloneable, ZipConstants

Most common way to construct:

Enumeration entries = …;

JarEntry entry = (JarEntry)entries.nextElement();

Based on 111 examples


public class JarEntry
extends ZipEntry

This class is used to represent a JAR file entry.


Field Summary
 
Fields inherited from class java.util.zip.ZipEntry
DEFLATED, STORED
 
Constructor Summary

          Creates a new JarEntry with fields taken from the specified JarEntry object.

          Creates a new JarEntry for the specified JAR file entry name.

          Creates a new JarEntry with fields taken from the specified ZipEntry object.
 
Method Summary
 Attributes

          Returns the Manifest Attributes for this entry, or null if none.
 Certificate[]

          Returns the Certificate objects for this entry, or null if none.
 CodeSigner[]

          Returns the CodeSigner objects for this entry, or null if none.
 
Methods inherited from class java.util.zip.ZipEntry
clone, getComment, getCompressedSize, getCrc, getExtra, getMethod, getName, getSize, getTime, hashCode, isDirectory, setComment, setCompressedSize, setCrc, setExtra, setMethod, setSize, setTime, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarEntry

public JarEntry(JarEntry je)
Creates a new JarEntry with fields taken from the specified JarEntry object.

Parameters:
je - the JarEntry to copy

JarEntry

public JarEntry(String name)
Creates a new JarEntry for the specified JAR file entry name.

Parameters:
name - the JAR file entry name

JarEntry

public JarEntry(ZipEntry ze)
Creates a new JarEntry with fields taken from the specified ZipEntry object.

Parameters:
ze - the ZipEntry object to create the JarEntry from
Method Detail

getAttributes

public Attributes getAttributes()
                         throws IOException
Returns the Manifest Attributes for this entry, or null if none.

Returns:
the Manifest Attributes for this entry, or null if none
Throws:
IOException

getCertificates

public Certificate[] getCertificates()
Returns the Certificate objects for this entry, or null if none. This method can only be called once the JarEntry 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 null.

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).

Returns:
the Certificate objects for this entry, or null if none.

getCodeSigners

public CodeSigner[] getCodeSigners()
Returns the CodeSigner objects for this entry, or null if none. This method can only be called once the JarEntry 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 null.

The returned array comprises all the code signers that have signed this entry.

Returns:
the CodeSigner objects for this entry, or null if none.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.