Class ZipCreator

java.lang.Object
com.bencodez.advancedcore.api.backup.ZipCreator

public class ZipCreator extends Object
The Class Report.
  • Field Details

  • Method Details

    • getInstance

      public static ZipCreator getInstance()
      Gets the single instance of Report.
      Returns:
      single instance of Report
    • addAllFiles

      public void addAllFiles(File dir, List<File> fileList)
      Adds the all files.
      Parameters:
      dir - the dir
      fileList - the file list
    • addToZip

      public void addToZip(File file, ZipOutputStream zos) throws FileNotFoundException, IOException
      Adds the to zip.
      Parameters:
      file - the file
      zos - the zos
      Throws:
      FileNotFoundException - the file not found exception
      IOException - Signals that an I/O exception has occurred.
    • create

      public void create(File directory, File zipFileLocation)
    • createReport

      public void createReport()
      Creates the.