ZipFileNameZipFileSynopsis
DescriptionThe ZipFile class represents a ZIP file. Unlike with a ZipInputStream, you can read the entries in a ZipFile nonsequentially. Internally, the class uses a RandomAccessFile so that you can read the entries from the file in any order. You can obtain a list of the entries in this ZIP file by calling entries(). Given an entry, you can get an InputStream for that entry using getInputStream(). Class Summary
public class java.util.zip.ZipFile extends java.lang.Object { // Constructors public ZipFile(File file); public ZipFile(String name); // Instance Methods public void close(); public Enumeration entries(); public ZipEntry getEntry(String name); public InputStream getInputStream(ZipEntry ze); public String getName(); } ConstructorsZipFilepublic ZipFile(File file) throws ZipException, IOException
public ZipFile(String name) throws IOException
Instance Methodsclosepublic void close() throws IOException
entriespublic Enumeration entries()
getEntrypublic ZipEntry getEntry(String name)
getInputStreampublic InputStream getInputStream(ZipEntry ze) throws IOException
getNamepublic String getName()
Inherited Methods
See AlsoEnumeration, File, InputStream, IOException, RandomAccessFile, String, ZipEntry, ZipException, ZipInputStream |
|