/**@class java.util.zip.ZipOutputStream
@extends java.util.zip.ZipConstants
@extends java.util.zip.DeflaterOutputStream
This class implements an output stream filter for writing files in the
ZIP file format. Includes support for both compressed and uncompressed
entries.
@author David Connelly
*/
var ZipOutputStream = {
/** Compression method for uncompressed (STORED) entries.
*/
STORED : 0,
/** Compression method for compressed (DEFLATED) entries.
*/
DEFLATED : 8,
@param {String} comment the comment string
@exception IllegalArgumentException if the length of the specified
ZIP file comment is greater than 0xFFFF bytes
*/
setComment : function( ) {},
/**Sets the default compression method for subsequent entries. This
default will be used whenever the compression method is not specified
for an individual ZIP file entry, and is initially set to DEFLATED.
@param {Number} method the default compression method
@exception IllegalArgumentException if the specified compression method
is invalid
*/
setMethod : function( ) {},
/**Sets the compression level for subsequent entries which are DEFLATED.
The default setting is DEFAULT_COMPRESSION.
@param {Number} level the compression level (0-9)
@exception IllegalArgumentException if the compression level is invalid
*/
setLevel : function( ) {},
/**Begins writing a new ZIP file entry and positions the stream to the
start of the entry data. Closes the current entry if still active.
The default compression method will be used if no compression method
was specified for the entry, and the current time will be used if
the entry has no set modification time.
@param {Object {ZipEntry}} e the ZIP entry to be written
@exception ZipException if a ZIP format error has occurred
@exception IOException if an I/O error has occurred
*/
putNextEntry : function( ) {},
/**Closes the current ZIP entry and positions the stream for writing
the next entry.
@exception ZipException if a ZIP format error has occurred
@exception IOException if an I/O error has occurred
*/
closeEntry : function( ) {},
/**Writes an array of bytes to the current ZIP entry data. This method
will block until all the bytes are written.
@param {Object {byte[]}} b the data to be written
@param {Number} off the start offset in the data
@param {Number} len the number of bytes that are written
@exception ZipException if a ZIP file error has occurred
@exception IOException if an I/O error has occurred
*/
write : function( ) {},
/**Finishes writing the contents of the ZIP output stream without closing
the underlying stream. Use this method when applying multiple filters
in succession to the same output stream.
@exception ZipException if a ZIP file error has occurred
@exception IOException if an I/O exception has occurred
*/
finish : function( ) {},
/**Closes the ZIP output stream as well as the stream being filtered.
@exception ZipException if a ZIP file error has occurred
@exception IOException if an I/O error has occurred
*/
close : function( ) {},
};