WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

@mozilla.org/zipwriter;1

This component implements the following interfaces:

Constants

Some predefined compression levels
PRUint32 nsIZipWriter.COMPRESSION_NONE = 0
PRUint32 nsIZipWriter.COMPRESSION_FASTEST = 1
PRUint32 nsIZipWriter.COMPRESSION_DEFAULT = 6
PRUint32 nsIZipWriter.COMPRESSION_BEST = 9

Properties

ACString nsIZipWriter.comment

Gets or sets the comment associated with the open zip file.

readonly nsIFile nsIZipWriter.file

The file that the zipwriter is writing to.

readonly PRBool nsIZipWriter.inQueue

Indicates that operations on the background queue are being performed.

Methods

InterfaceMethod
nsIZipWriter void addEntryChannel ( AUTF8String zipEntry , PRTime modTime , PRInt32 compression , nsIChannel channel , PRBool queue )
nsIZipWriter void addEntryDirectory ( AUTF8String zipEntry , PRTime modTime , PRBool queue )
nsIZipWriter void addEntryFile ( AUTF8String zipEntry , PRInt32 compression , nsIFile file , PRBool queue )
nsIZipWriter void addEntryStream ( AUTF8String zipEntry , PRTime modTime , PRInt32 compression , nsIInputStream stream , PRBool queue )
nsIZipWriter void close ( )
nsIZipWriter nsIZipEntry getEntry ( AUTF8String zipEntry )
nsIZipWriter PRBool hasEntry ( AUTF8String zipEntry )
nsIRequestObserver void onStartRequest ( nsIRequest request , nsISupports context )
nsIRequestObserver void onStopRequest ( nsIRequest request , nsISupports context , nsresult statusCode )
nsIZipWriter void open ( nsIFile file , PRInt32 ioFlags )
nsIZipWriter void processQueue ( nsIRequestObserver observer , nsISupports context )
nsIZipWriter void removeEntry ( AUTF8String zipEntry , PRBool queue )

Reference documentation is generated from Mozilla's source.