类 WeakZipFileFactory


  • public class WeakZipFileFactory
    extends java.lang.Object
    This class implements a factory for creating weak zip files, which behave mostly like a ZipFile, but can be weakly closed to limit the number of open files.
    • 嵌套类概要

      嵌套类 
      修饰符和类型 说明
      class  WeakZipFileFactory.WeakZipFile
      This class wraps a ZipFile to making it possible to weakly close it; this means the underlying zip file will be automatically reopened on demand if anyone tries to use it.
    • 构造器概要

      构造器 
      构造器 说明
      WeakZipFileFactory​(int limit)
      Constructs a weak zip file factory with the specified file limit.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      WeakZipFileFactory.WeakZipFile create​(java.io.File file)
      Factory method used to create weak zip files.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • WeakZipFileFactory

        public WeakZipFileFactory​(int limit)
        Constructs a weak zip file factory with the specified file limit. A limit of zero signifies no limit.
        参数:
        limit - maximum number of open zip files at any given time.
    • 方法详细资料

      • create

        public WeakZipFileFactory.WeakZipFile create​(java.io.File file)
                                              throws java.io.IOException
        Factory method used to create weak zip files.
        参数:
        file - the target zip file.
        返回:
        the created weak zip file.
        抛出:
        java.io.IOException - if the zip file could not be opened.