public class WeakZipFileFactory extends Object
Modifier and Type | Class and Description |
---|---|
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.
|
Constructor and Description |
---|
WeakZipFileFactory(int limit)
Constructs a weak zip file factory with the specified file limit.
|
public WeakZipFileFactory(int limit)
limit
- maximum number of open zip files at any given time.public WeakZipFileFactory.WeakZipFile create(File file) throws IOException
file
- the target zip file.IOException
- if the zip file could not be opened.Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.