Android
java.util.jar
public class

java.util.jar.JarEntry

java.lang.Object
java.util.zip.ZipEntry Cloneable
java.util.jar.JarEntry

Summary

Constants inherited from class java.util.zip.ZipEntry

Public Constructors

            JarEntry(String name)
Create a new JarEntry named name
            JarEntry(ZipEntry entry)
Create a new JarEntry using the values obtained from entry.
            JarEntry(JarEntry je)
Create a new JarEntry using the values obtained from je.

Public Methods

          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.
Methods inherited from class java.util.zip.ZipEntry
Methods inherited from class java.lang.Object

Details

Public Constructors

public JarEntry(String name)

Create a new JarEntry named name

Parameters

name The name of the new JarEntry

public JarEntry(ZipEntry entry)

Create a new JarEntry using the values obtained from entry.

Parameters

entry The ZipEntry to obtain values from.

public JarEntry(JarEntry je)

Create a new JarEntry using the values obtained from je.

Parameters

je The JarEntry to obtain values from

Public Methods

public Attributes getAttributes()

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

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

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.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56