API Overview API Index Package Overview Direct link to this page
Apache Ant 1.7.1
  org.apache.tools.zip. ZipFile View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      ZipFile
Implements
Subclasses
Description
public class ZipFile
  Replacement for java.util.ZipFile.
See also:   
Constructors
public ZipFile (java.io.File f) throws java.io.IOException
  Opens the given file for reading, assuming the platform's native encoding for file names.
public ZipFile (java.io.File f, java.lang.String encoding) throws java.io.IOException
  Opens the given file for reading, assuming the specified encoding for file names.
public ZipFile (java.lang.String name) throws java.io.IOException
  Opens the given file for reading, assuming the platform's native encoding for file names.
public ZipFile (java.lang.String name, java.lang.String encoding) throws java.io.IOException
  Opens the given file for reading, assuming the specified encoding for file names.
Methods
Hide/Show inherited methods
public void close () throws java.io.IOException
  Closes the archive.
publicstatic void closeQuietly (ZipFile zipfile)
  close a zipfile quietly; throw no io fault, do nothing on a null parameter
protectedstatic java.util.Date fromDosTime (ZipLong zipDosTime)
  Convert a DOS date/time field to a Date object.
public java.lang.String getEncoding ()
  The encoding to use for filenames and the file comment.
public java.util.Enumeration getEntries ()
  Returns all entries.
public ZipEntry getEntry (java.lang.String name)
  Returns a named entry - or null if no entry by that name exists.
public java.io.InputStream getInputStream (ZipEntry ze) throws java.io.IOException java.util.zip.ZipException
  Returns an InputStream for reading the contents of the given entry.
protected java.lang.String getString (byte[] bytes) throws java.util.zip.ZipException
  Retrieve a String from the given bytes using the encoding set for this ZipFile.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar