|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecteu.cedarsoft.utils.ZipExtractor
public class ZipExtractor
Extracts ZIP files
| Nested Class Summary | |
|---|---|
static interface |
ZipExtractor.Condition
A condition can decide whether a given zip entry shall be extracted or not |
static class |
ZipExtractor.InvertedCondition
Inverts a condition |
| Constructor Summary | |
|---|---|
ZipExtractor(java.io.File zipFile)
Creates a new extractor for the given file |
|
| Method Summary | |
|---|---|
void |
extract(java.io.File destination)
Extract the zip file to the given destination |
ZipExtractor.Condition |
getCondition()
Returns the currently set condition |
void |
setCondition(ZipExtractor.Condition condition)
Sets the (optional) condition |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZipExtractor(@NotNull
java.io.File zipFile)
throws java.io.FileNotFoundException
zipFile - the zip file that will be extracted
java.io.FileNotFoundException - if the file does not exist| Method Detail |
|---|
public void extract(@NotNull
java.io.File destination)
throws java.io.IOException
destination - the destination the file will be extracted to
java.io.IOException@Nullable public ZipExtractor.Condition getCondition()
public void setCondition(@Nullable
ZipExtractor.Condition condition)
condition - the condition
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||