Home » openjdk-7 » java » util » jar » [javadoc | source]
java.util.jar
public class: JarEntry [javadoc | source]
java.lang.Object
   java.util.zip.ZipEntry
      java.util.jar.JarEntry

All Implemented Interfaces:
    ZipConstants, Cloneable

Direct Known Subclasses:
    JarFileEntry

This class is used to represent a JAR file entry.
Field Summary
 Attributes attr     
 Certificate[] certs     
 CodeSigner[] signers     
Fields inherited from java.util.zip.ZipEntry:
name,  time,  crc,  size,  csize,  method,  flag,  extra,  comment,  STORED,  DEFLATED
Constructor:
 public JarEntry(String name) 
    Creates a new JarEntry for the specified JAR file entry name.
    Parameters:
    name - the JAR file entry name
    Throws:
    NullPointerException - if the entry name is null
    IllegalArgumentException - if the entry name is longer than 0xFFFF bytes.
    exception: NullPointerException - if the entry name is null
    exception: IllegalArgumentException - if the entry name is longer than 0xFFFF bytes.
 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
 public JarEntry(JarEntry je) 
    Creates a new JarEntry with fields taken from the specified JarEntry object.
    Parameters:
    je - the JarEntry to copy
Method from java.util.jar.JarEntry Summary:
getAttributes,   getCertificates,   getCodeSigners
Methods from java.util.zip.ZipEntry:
clone,   getComment,   getCompressedSize,   getCrc,   getExtra,   getMethod,   getName,   getSize,   getTime,   hashCode,   isDirectory,   setComment,   setCompressedSize,   setCrc,   setExtra,   setMethod,   setSize,   setTime,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.util.jar.JarEntry Detail:
 public Attributes getAttributes() throws IOException 
    Returns the Manifest Attributes for this entry, or null if none.
 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).

 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.