nsIZipReader

IID:6ff6a966-9632-11d3-8cd9-0060b0fc14a3
Inherits From:nsISupports

This interface is implemented by the following components:


Properties

readonly nsIFile file


Methods

void close ( ) void extract ( char* zipEntry , nsIFile outFile ) nsISimpleEnumerator findEntries ( char* pattern ) nsIZipEntry getEntry ( char* zipEntry ) nsIInputStream getInputStream ( char* zipEntry ) void init ( nsIFile zipFile ) void open ( ) void test ( char* entryName )

void close ( )

Closes a zip reader. Subsequent attempts to extract files or read from its input stream will result in an error.


void extract ( char* zipEntry , nsIFile outFile )

Extracts a zip entry into a local file specified by outFile.

Arguments:
zipEntry
outFile

nsISimpleEnumerator findEntries ( char* pattern )

Returns a simple enumerator whose elements are of type nsIZipEntry.

Arguments:
pattern

nsIZipEntry getEntry ( char* zipEntry )

Returns a nsIZipEntry describing a specified zip entry.

Arguments:
zipEntry

nsIInputStream getInputStream ( char* zipEntry )

Returns an input stream containing the contents of the specified zip entry.

Arguments:
zipEntry

void init ( nsIFile zipFile )

Initializes a zip reader after construction.

Arguments:
zipFile

void open ( )

Opens a zip reader.


void test ( char* entryName )

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.

Arguments:
entryName

References

This interface is returned from the following methods:

nsIZipReaderCache.getZip

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com