Package de.willuhn.io
Class ZipExtractor
- java.lang.Object
-
- de.willuhn.io.AbstractZipSupport
-
- de.willuhn.io.ZipExtractor
-
public class ZipExtractor extends AbstractZipSupport
Hilfklasse zum Entpacken von ZIP-Archiven.- Author:
- willuhn
-
-
Field Summary
-
Fields inherited from class de.willuhn.io.AbstractZipSupport
monitor
-
-
Constructor Summary
Constructors Constructor Description ZipExtractor(java.util.zip.ZipFile zip)
ct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
extract(java.io.File targetDirectory)
Entpackt das ZIP-File in das angegebene Verzeichnis.-
Methods inherited from class de.willuhn.io.AbstractZipSupport
setMonitor
-
-
-
-
Method Detail
-
extract
public void extract(java.io.File targetDirectory) throws java.io.IOException
Entpackt das ZIP-File in das angegebene Verzeichnis. Bereits existierende Dateien/Verzeichnisse werden nur dann ueberschrieben, wenn sie neuer sind.- Parameters:
targetDirectory
- Ziel-Verzeichnis. Es wird automatisch angelegt, wenn es noch nicht existiert.- Throws:
java.io.IOException
-
-