public class WeakZipFileFactory
extends java.lang.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.
|
| Modifier and Type | Method and Description |
|---|---|
WeakZipFileFactory.WeakZipFile |
create(java.io.File file)
Factory method used to create weak zip files.
|
public WeakZipFileFactory(int limit)
limit - maximum number of open zip files at any given time.public WeakZipFileFactory.WeakZipFile create(java.io.File file) throws java.io.IOException
file - the target zip file.java.io.IOException - if the zip file could not be opened.Copyright © 2012. All Rights Reserved.