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