API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.jar. JarEntry View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      ZipEntry
          JarEntry
Implements
Subclasses
Description
public class JarEntry
This class is used to represent a JAR file entry.
See also:   
Constructors
public JarEntry (JarEntry je)
  Creates a new JarEntry with fields taken from the specified JarEntry object.
public JarEntry (String name)
  Creates a new JarEntry for the specified JAR file entry name.
public JarEntry (ZipEntry ze)
  Creates a new JarEntry with fields taken from the specified ZipEntry object.
Methods
Hide/Show inherited methods
public Object clone () [Inherited From ZipEntry]
Returns a copy of this entry.
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.
public CodeSigner getCodeSigners ()
  Returns the CodeSigner objects for this entry, or null if none.
public String getComment () [Inherited From ZipEntry]
  Returns the comment string for the entry, or null if none.
public long getCompressedSize () [Inherited From ZipEntry]
  Returns the size of the compressed entry data, or -1 if not known.
public long getCrc () [Inherited From ZipEntry]
  Returns the CRC-32 checksum of the uncompressed entry data, or -1 if not known.
public byte getExtra () [Inherited From ZipEntry]
  Returns the extra field data for the entry, or null if none.
public int getMethod () [Inherited From ZipEntry]
  Returns the compression method of the entry, or -1 if not specified.
public String getName () [Inherited From ZipEntry]
  Returns the name of the entry.
public long getSize () [Inherited From ZipEntry]
  Returns the uncompressed size of the entry data, or -1 if not known.
public long getTime () [Inherited From ZipEntry]
  Returns the modification time of the entry, or -1 if not specified.
public int hashCode () [Inherited From ZipEntry]
Returns the hash code value for this entry.
public boolean isDirectory () [Inherited From ZipEntry]
  Returns true if this is a directory entry.
public void setComment (String comment) [Inherited From ZipEntry]
  Sets the optional comment string for the entry.
public void setCompressedSize (long csize) [Inherited From ZipEntry]
  Sets the size of the compressed entry data.
public void setCrc (long crc) [Inherited From ZipEntry]
  Sets the CRC-32 checksum of the uncompressed entry data.
public void setExtra (byte[] extra) [Inherited From ZipEntry]
  Sets the optional extra field data for the entry.
public void setMethod (int method) [Inherited From ZipEntry]
  Sets the compression method for the entry.
public void setSize (long size) [Inherited From ZipEntry]
  Sets the uncompressed size of the entry data.
public void setTime (long time) [Inherited From ZipEntry]
  Sets the modification time of the entry.
public String toString () [Inherited From ZipEntry]
Returns a string representation of the ZIP entry.
Fields
Hide/Show inherited fields
pack-private Attributes attr
pack-private Certificate certs
publicfinalstatic int DEFLATED = "8" [Inherited From ZipEntry]
Compression method for compressed (deflated) entries.
pack-private CodeSigner signers
publicfinalstatic int STORED = "0" [Inherited From ZipEntry]
Compression method for uncompressed entries.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar