Package org.pf4j.util
Class Unzip
- java.lang.Object
-
- org.pf4j.util.Unzip
-
public class Unzip extends java.lang.ObjectThis 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.FiledestinationHolds the destination directory.private static org.slf4j.Loggerlogprivate java.io.FilesourceHolds path to zip file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidextract()Extract the content of zip file (source) to destination directory.voidsetDestination(java.io.File destination)voidsetSource(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.IOExceptionExtract the content of zip file (source) to destination directory. If destination directory already exists it will be deleted before.- Throws:
java.io.IOException
-
-