Package org.pf4j.util
Class Unzip
- java.lang.Object
-
- org.pf4j.util.Unzip
-
public class Unzip extends java.lang.Object
This class extracts the content of the plugin zip into a directory. It's a class for only the internal use.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
destination
Holds the destination directory.private static org.slf4j.Logger
log
private java.io.File
source
Holds path to zip file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
extract()
Extract the content of zip file (source
) to destination directory.void
setDestination(java.io.File destination)
void
setSource(java.io.File source)
-
-
-
Method Detail
-
setSource
public void setSource(java.io.File source)
-
setDestination
public void setDestination(java.io.File destination)
-
extract
public void extract() throws java.io.IOException
Extract the content of zip file (source
) to destination directory. If destination directory already exists it will be deleted before.- Throws:
java.io.IOException
-
-