API Overview API Index Package Overview Direct link to this page
Apache Ant 1.7.1
  org.apache.tools.zip. ZipEntry View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      ZipEntry
          ZipEntry
Implements
 Cloneable
Subclasses
Description
public class ZipEntry
Extension that adds better handling of extra fields and provides access to the internal and external file attributes.
See also:   
Constructors
protected ZipEntry ()
 
public ZipEntry (java.lang.String name)
  Creates a new zip entry with the specified name.
public ZipEntry (java.util.zip.ZipEntry entry) throws java.util.zip.ZipException
  Creates a new zip entry with fields taken from the specified zip entry.
public ZipEntry (ZipEntry entry) throws java.util.zip.ZipException
  Creates a new zip entry with fields taken from the specified zip entry.
Methods
Hide/Show inherited methods
public void addExtraField (ZipExtraField ze)
  Adds an extra fields - replacing an already present extra field of the same type.
public java.lang.Object clone () [Overrides java.util.zip.ZipEntry]
  Overwrite clone.
public boolean equals (java.lang.Object o)
  The equality method.
public byte getCentralDirectoryExtra ()
  Retrieves the extra data for the central directory.
public java.lang.String getComment () [Inherited From java.util.zip.ZipEntry]
public long getCompressedSize () [Inherited From java.util.zip.ZipEntry]
public long getCrc () [Inherited From java.util.zip.ZipEntry]
public long getExternalAttributes ()
  Retrieves the external file attributes.
public byte getExtra () [Inherited From java.util.zip.ZipEntry]
public ZipExtraField getExtraFields ()
  Retrieves extra fields.
public int getInternalAttributes ()
  Retrieves the internal file attributes.
public byte getLocalFileDataExtra ()
  Retrieves the extra data for the local file data.
public int getMethod () [Inherited From java.util.zip.ZipEntry]
public java.lang.String getName () [Overrides java.util.zip.ZipEntry]
  Get the name of the entry.
public int getPlatform ()
  Platform specification to put into the "version made by" part of the central file header.
public long getSize () [Inherited From java.util.zip.ZipEntry]
public long getTime () [Inherited From java.util.zip.ZipEntry]
public int getUnixMode ()
  Unix permission.
public int hashCode () [Overrides java.util.zip.ZipEntry]
  Get the hashCode of the entry.
public boolean isDirectory () [Overrides java.util.zip.ZipEntry]
  Is this entry a directory?
public void removeExtraField (ZipShort type)
  Remove an extra fields.
public void setComment (java.lang.String arg0) [Inherited From java.util.zip.ZipEntry]
public void setCompressedSize (long arg0) [Inherited From java.util.zip.ZipEntry]
public void setComprSize (long size)
  Make this class work in JDK 1.1 like a 1.2 class.
public void setCrc (long arg0) [Inherited From java.util.zip.ZipEntry]
public void setExternalAttributes (long value)
  Sets the external file attributes.
protected void setExtra ()
  Unfortunately java.util.zip.ZipOutputStream seems to access the extra data directly, so overriding getExtra doesn't help - we need to modify super's data directly.
public void setExtra (byte[] extra) throws java.lang.RuntimeException [Overrides java.util.zip.ZipEntry]
  Throws an Exception if extra data cannot be parsed into extra fields.
public void setExtraFields (ZipExtraField fields)
  Replaces all currently attached extra fields with the new array.
public void setInternalAttributes (int value)
  Sets the internal file attributes.
public void setMethod (int arg0) [Inherited From java.util.zip.ZipEntry]
protected void setName (java.lang.String name)
  Set the name of the entry.
protected void setPlatform (int platform)
  Set the platform (UNIX or FAT).
public void setSize (long arg0) [Inherited From java.util.zip.ZipEntry]
public void setTime (long arg0) [Inherited From java.util.zip.ZipEntry]
public void setUnixMode (int mode)
  Sets Unix permissions in a way that is understood by Info-Zip's unzip command.
public java.lang.String toString () [Inherited From java.util.zip.ZipEntry]
Fields
Hide/Show inherited fields
publicfinalstatic int DEFLATED = "8" [Inherited From java.util.zip.ZipEntry]
publicfinalstatic int STORED = "0" [Inherited From java.util.zip.ZipEntry]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar