Package org.pf4j.util

Class Unzip

java.lang.Object
org.pf4j.util.Unzip

public class Unzip extends Object
This class extracts the content of the plugin zip into a directory. It's a class for only the internal use.
  • Field Details

    • log

      private static final org.slf4j.Logger log
    • destination

      private File destination
      Holds the destination directory. File will be unzipped into the destination directory.
    • source

      private File source
      Holds path to zip file.
  • Constructor Details

    • Unzip

      public Unzip()
    • Unzip

      public Unzip(File source, File destination)
  • Method Details

    • setSource

      public void setSource(File source)
    • setDestination

      public void setDestination(File destination)
    • extract

      public void extract() throws IOException
      Extract the content of zip file (source) to destination directory. If destination directory already exists it will be deleted before.
      Throws:
      IOException