/**@class java.util.zip.ZipFile
@extends java.util.zip.ZipConstants
@extends java.io.Closeable
@extends java.lang.Object
This class is used to read entries from a zip file.
<p> Unless otherwise noted, passing a <tt>null</tt> argument to a constructor
or method in this class will cause a {@link NullPointerException} to be
thrown.
@author David Connelly
*/
var ZipFile = {
/** Mode flag to open a zip file for reading.
*/
OPEN_READ : 1,
/** Mode flag to open a zip file and mark it for deletion. The file will be
deleted some time between the moment that it is opened and the moment
that it is closed, but its contents will remain accessible via the
<tt>ZipFile</tt> object until either the close method is invoked or the
virtual machine exits.
*/
OPEN_DELETE : 4,
@return {String} the comment string for the zip file, or null if none
@throws IllegalStateException if the zip file has been closed
Since 1.7
*/
getComment : function( ) {},
/**Returns the zip file entry for the specified name, or null
if not found.
@param {String} name the name of the entry
@return {Object {java.util.zip.ZipEntry}} the zip file entry, or null if not found
@throws IllegalStateException if the zip file has been closed
*/
getEntry : function( ) {},
/**Returns an input stream for reading the contents of the specified
zip file entry.
<p> Closing this ZIP file will, in turn, close all input
streams that have been returned by invocations of this method.
@param {Object {ZipEntry}} entry the zip file entry
@return {Object {java.io.InputStream}} the input stream for reading the contents of the specified
zip file entry.
@throws ZipException if a ZIP format error has occurred
@throws IOException if an I/O error has occurred
@throws IllegalStateException if the zip file has been closed
*/
getInputStream : function( ) {},
/**Returns the path name of the ZIP file.
@return {String} the path name of the ZIP file
*/
getName : function( ) {},
/**Returns an enumeration of the ZIP file entries.
@return {Object {java.util.Enumeration}} an enumeration of the ZIP file entries
@throws IllegalStateException if the zip file has been closed
*/
entries : function( ) {},
/**Returns the number of entries in the ZIP file.
@return {Number} the number of entries in the ZIP file
@throws IllegalStateException if the zip file has been closed
*/
size : function( ) {},
/**Closes the ZIP file.
<p> Closing this ZIP file will close all of the input streams
previously returned by invocations of the {@link #getInputStream
getInputStream} method.
@throws IOException if an I/O error has occurred
*/
close : function( ) {},
};