|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.framework.util.WeakZipFileFactory
public class WeakZipFileFactory
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.
| Nested Class Summary | |
|---|---|
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 Summary | |
|---|---|
WeakZipFileFactory(int limit)
Constructs a weak zip file factory with the specified file limit. |
|
| Method Summary | |
|---|---|
WeakZipFileFactory.WeakZipFile |
create(java.io.File file)
Factory method used to create weak zip files. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeakZipFileFactory(int limit)
limit - maximum number of open zip files at any given time.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||