API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.zip. ZipEntry View Source
Author(s)
David Connelly
Since
Version
1.40, 11/17/05
Serial
Hierarchy
 Object
      ZipEntry
Implements
 ZipConstants
 Cloneable
Subclasses
Description
public class ZipEntry
This class is used to represent a ZIP file entry.
See also:   
Constructors
pack-private ZipEntry (long jzentry)
public ZipEntry (String name)
  Creates a new zip entry with the specified name.
pack-private ZipEntry (String name, long jzentry)
public ZipEntry (ZipEntry e)
  Creates a new zip entry with fields taken from the specified zip entry.
Methods
Hide/Show inherited methods
public Object clone ()
Returns a copy of this entry.
public String getComment ()
  Returns the comment string for the entry, or null if none.
public long getCompressedSize ()
  Returns the size of the compressed entry data, or -1 if not known.
public long getCrc ()
  Returns the CRC-32 checksum of the uncompressed entry data, or -1 if not known.
public byte getExtra ()
  Returns the extra field data for the entry, or null if none.
public int getMethod ()
  Returns the compression method of the entry, or -1 if not specified.
public String getName ()
  Returns the name of the entry.
public long getSize ()
  Returns the uncompressed size of the entry data, or -1 if not known.
public long getTime ()
  Returns the modification time of the entry, or -1 if not specified.
public int hashCode ()
Returns the hash code value for this entry.
public boolean isDirectory ()
  Returns true if this is a directory entry.
public void setComment (String comment)
  Sets the optional comment string for the entry.
public void setCompressedSize (long csize)
  Sets the size of the compressed entry data.
public void setCrc (long crc)
  Sets the CRC-32 checksum of the uncompressed entry data.
public void setExtra (byte[] extra)
  Sets the optional extra field data for the entry.
public void setMethod (int method)
  Sets the compression method for the entry.
public void setSize (long size)
  Sets the uncompressed size of the entry data.
public void setTime (long time)
  Sets the modification time of the entry.
public String toString ()
Returns a string representation of the ZIP entry.
Fields
Hide/Show inherited fields
publicfinalstatic int CENATT = "36" [Inherited From ZipConstants]
publicfinalstatic int CENATX = "38" [Inherited From ZipConstants]
publicfinalstatic int CENCOM = "32" [Inherited From ZipConstants]
publicfinalstatic int CENCRC = "16" [Inherited From ZipConstants]
publicfinalstatic int CENDSK = "34" [Inherited From ZipConstants]
publicfinalstatic int CENEXT = "30" [Inherited From ZipConstants]
publicfinalstatic int CENFLG = "8" [Inherited From ZipConstants]
publicfinalstatic int CENHDR = "46" [Inherited From ZipConstants]
publicfinalstatic int CENHOW = "10" [Inherited From ZipConstants]
publicfinalstatic int CENLEN = "24" [Inherited From ZipConstants]
publicfinalstatic int CENNAM = "28" [Inherited From ZipConstants]
publicfinalstatic int CENOFF = "42" [Inherited From ZipConstants]
publicfinalstatic long CENSIG = "33639248" [Inherited From ZipConstants]
publicfinalstatic int CENSIZ = "20" [Inherited From ZipConstants]
publicfinalstatic int CENTIM = "12" [Inherited From ZipConstants]
publicfinalstatic int CENVEM = "4" [Inherited From ZipConstants]
publicfinalstatic int CENVER = "6" [Inherited From ZipConstants]
pack-private String comment
pack-private long crc
pack-private long csize
publicfinalstatic int DEFLATED = "8"
Compression method for compressed (deflated) entries.
publicfinalstatic int ENDCOM = "20" [Inherited From ZipConstants]
publicfinalstatic int ENDHDR = "22" [Inherited From ZipConstants]
publicfinalstatic int ENDOFF = "16" [Inherited From ZipConstants]
publicfinalstatic long ENDSIG = "101010256" [Inherited From ZipConstants]
publicfinalstatic int ENDSIZ = "12" [Inherited From ZipConstants]
publicfinalstatic int ENDSUB = "8" [Inherited From ZipConstants]
publicfinalstatic int ENDTOT = "10" [Inherited From ZipConstants]
publicfinalstatic int EXTCRC = "4" [Inherited From ZipConstants]
publicfinalstatic int EXTHDR = "16" [Inherited From ZipConstants]
publicfinalstatic int EXTLEN = "12" [Inherited From ZipConstants]
pack-private byte extra
publicfinalstatic long EXTSIG = "134695760" [Inherited From ZipConstants]
publicfinalstatic int EXTSIZ = "8" [Inherited From ZipConstants]
publicfinalstatic int LOCCRC = "14" [Inherited From ZipConstants]
publicfinalstatic int LOCEXT = "28" [Inherited From ZipConstants]
publicfinalstatic int LOCFLG = "6" [Inherited From ZipConstants]
publicfinalstatic int LOCHDR = "30" [Inherited From ZipConstants]
publicfinalstatic int LOCHOW = "8" [Inherited From ZipConstants]
publicfinalstatic int LOCLEN = "22" [Inherited From ZipConstants]
publicfinalstatic int LOCNAM = "26" [Inherited From ZipConstants]
publicfinalstatic long LOCSIG = "67324752" [Inherited From ZipConstants]
publicfinalstatic int LOCSIZ = "18" [Inherited From ZipConstants]
publicfinalstatic int LOCTIM = "10" [Inherited From ZipConstants]
publicfinalstatic int LOCVER = "4" [Inherited From ZipConstants]
pack-private int method
pack-private String name
pack-private long size
publicfinalstatic int STORED = "0"
Compression method for uncompressed entries.
pack-private long time
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar