Class ZipService

java.lang.Object
org.tailormap.api.service.ZipService

@Service public class ZipService extends Object
Service for zipping directories and other useful operations concerning zip files.
  • Constructor Details

    • ZipService

      public ZipService()
  • Method Details

    • zipDirectory

      public void zipDirectory(Path sourceDir, Path zipFile) throws IOException
      Zips the contents of a directory into a zip file.
      Parameters:
      sourceDir - the directory to zip
      zipFile - the resulting zip file
      Throws:
      IOException - if an I/O error occurs