nsISupports
Last changed in Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7)Implemented by: @mozilla.org/libjar/zip-reader-cache;1
. To create an instance, use:
var zipReaderCache = Components.classes["@mozilla.org/libjar/zip-reader-cache;1"] .createInstance(Components.interfaces.nsIZipReaderCache);
nsIZipReader getInnerZip(in nsIFile zipFile, in AUTF8String zipEntry); nsIZipReader getInnerZip(in nsIFile zipFile, in string zipEntry); Obsolete since Gecko 10 |
nsIZipReader getZip(in nsIFile zipFile); |
void init(in unsigned long cacheSize); |
Returns a (possibly shared) cached nsIZipReader
for a zip inside another zip.
nsIZipReader getInnerZip( in nsIFile zipFile, in AUTF8String zipEntry );
zipFile
zipEntry
The nsIZipReader
for the given zip file.
Returns a (possibly shared) cached nsIZipReader
for a zip file.
If the zip reader for the given file is not in the cache, a new nsIZipReader
is opened (see nsIZipReader.open()
). Otherwise the previously created nsIZipReader
is returned.
nsIZipReader
, this method will return the closed nsIZipReader
nsIZipReader getZip( in nsIFile zipFile );
zipFile
The nsIZipReader
for the given zip file.
Initializes a new zip reader cache.
void init( in unsigned long cacheSize );
cacheSize