Build 1.0_r1(from source)

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

public class JarEntry
extends ZipEntry


Field Summary
(package private)  JarFile parentJar
           
(package private)  CodeSigner[] signers
           
 
Fields inherited from class java.util.zip.ZipEntry
DEFLATED, STORED
 
Fields inherited from interface java.util.zip.ZipConstants
CENATT, CENATX, CENCOM, CENCRC, CENDSK, CENEXT, CENFLG, CENHDR, CENHOW, CENLEN, CENNAM, CENOFF, CENSIG, CENSIZ, CENTIM, CENVEM, CENVER, ENDCOM, ENDHDR, ENDOFF, ENDSIG, ENDSIZ, ENDSUB, ENDTOT, EXTCRC, EXTHDR, EXTLEN, EXTSIG, EXTSIZ, LOCCRC, LOCEXT, LOCFLG, LOCHDR, LOCHOW, LOCLEN, LOCNAM, LOCSIG, LOCSIZ, LOCTIM, LOCVER
 
Constructor Summary
JarEntry(JarEntry je)
          Create a new JarEntry using the values obtained from je.
JarEntry(String name)
          Create a new JarEntry named name
JarEntry(ZipEntry entry)
          Create a new JarEntry using the values obtained from entry.
 
Method Summary
 Attributes getAttributes()
          Returns the Attributes object associated with this entry or null if none exists.
 Certificate[] getCertificates()
          Returns an array of Certificate Objects associated with this entry or null if none exist.
 CodeSigner[] getCodeSigners()
          Returns the code signers for the jar entry.
(package private)  void setAttributes(Attributes attrib)
           
 
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
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

parentJar

JarFile parentJar

signers

CodeSigner[] signers
Constructor Detail

JarEntry

public JarEntry(String name)
Create a new JarEntry named name

Parameters:
name - The name of the new JarEntry

JarEntry

public JarEntry(ZipEntry entry)
Create a new JarEntry using the values obtained from entry.

Parameters:
entry - The ZipEntry to obtain values from.

JarEntry

public JarEntry(JarEntry je)
Create a new JarEntry using the values obtained from je.

Parameters:
je - The JarEntry to obtain values from
Method Detail

getAttributes

public Attributes getAttributes()
                         throws IOException
Returns the Attributes object associated with this entry or null if none exists.

Returns:
java.util.jar.Attributes Attributes for this entry
Throws:
IOException - If an error occurs obtaining the Attributes

getCertificates

public Certificate[] getCertificates()
Returns an array of Certificate Objects associated with this entry or null if none exist.

Returns:
java.security.cert.Certificate[] Certificates for this entry

setAttributes

void setAttributes(Attributes attrib)

getCodeSigners

public CodeSigner[] getCodeSigners()
Returns the code signers for the jar entry. If there is no such code signers, returns null. Only when the jar entry has been completely verified by reading till the end of the jar entry, can the method be called. Or else the method will return null.

Returns:
the code signers for the jar entry.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature