nsIZipReaderCache 编辑
modules/libjar/nsIZipReader.idl
Scriptable Please add a summary to this article. Inherits from: 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);
Method overview
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); |
Methods
getInnerZip()
Returns a (possibly shared) cached nsIZipReader
for a zip inside another zip.
nsIZipReader getInnerZip( in nsIFile zipFile, in AUTF8String zipEntry );
Parameters
zipFile
- The zip file.
zipEntry
- The zip entry.
Return value
The nsIZipReader
for the given zip file.
getZip()
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 );
Parameters
zipFile
- The zip file.
Return value
The nsIZipReader
for the given zip file.
init()
Initializes a new zip reader cache.
void init( in unsigned long cacheSize );
Parameters
cacheSize
- The number of released entries to maintain before beginning to throw some out. The number of outstanding entries can be much greater than this number, this is the count for those otherwise unused entries.
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论