Linux Mac OSX Windows

Implemented by


  
[scriptable, uuid(6ff6a966-9632-11d3-8cd9-0060b0fc14a3)]
interface nsIZipReader : nsISupports

Attributes


        
readonly attribute nsIFile file

Methods

 Closes a zip reader. Subsequent attempts to extract files or read from
 its input stream will result in an error.
void close()
 Extracts a zip entry into a local file specified by outFile.
void extract(in string zipEntry, in nsIFile outFile)
 Returns a simple enumerator whose elements are of type nsIZipEntry.
nsISimpleEnumerator findEntries(in string aPattern)
 Returns a nsIZipEntry describing a specified zip entry.
nsIZipEntry getEntry(in string zipEntry)
 Returns an input stream containing the contents of the specified zip entry.
nsIInputStream getInputStream(in string zipEntry)
 Initializes a zip reader after construction.
void init(in nsIFile zipFile)
 Opens a zip reader.
void open()
 Tests the integrity of the archive by performing a CRC check 
 on each item expanded into memory.  If an entry is specified
 the integrity of only that item is tested.  If NULL is passed 
 in the inetgrity of all items in the archive are tested.  
void test(in string aEntryName)