API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.zip. ZipFile View Source
Author(s)
David Connelly
Since
Version
1.78, 07/31/06
Serial
Hierarchy
 Object
      ZipFile
Implements
 ZipConstants
Subclasses
Description
public class ZipFile
  This class is used to read entries from a zip file.
See also:   
Constructors
public ZipFile (File file) throws ZipException IOException
  Opens a ZIP file for reading given the specified File object.
public ZipFile (File file, int mode) throws IOException
  Opens a new ZipFile to read from the specified File object in the specified mode.
public ZipFile (String name) throws IOException
  Opens a zip file for reading.
Methods
Hide/Show inherited methods
public void close () throws IOException
  Closes the ZIP file.
public Enumeration<ZipEntry> entries ()
  Returns an enumeration of the ZIP file entries.
protected void finalize () throws IOException
  Ensures that the close method of this ZIP file is called when there are no more references to it.
public ZipEntry getEntry (String name)
  Returns the zip file entry for the specified name, or null if not found.
public InputStream getInputStream (ZipEntry entry) throws IOException
  Returns an input stream for reading the contents of the specified zip file entry.
public String getName ()
  Returns the path name of the ZIP file.
public int size ()
  Returns the number of entries in the ZIP file.
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]
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]
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]
publicfinalstatic int OPEN_DELETE = "4"
  Mode flag to open a zip file and mark it for deletion.
publicfinalstatic int OPEN_READ = "1"
Mode flag to open a zip file for reading.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar