Class ZipService
java.lang.Object
org.tailormap.api.service.ZipService
Service for zipping directories and other useful operations concerning zip files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidzipDirectory(Path sourceDir, Path zipFile) Zips the contents of a directory into a zip file.
-
Constructor Details
-
ZipService
public ZipService()
-
-
Method Details
-
zipDirectory
Zips the contents of a directory into a zip file.- Parameters:
sourceDir- the directory to zipzipFile- the resulting zip file- Throws:
IOException- if an I/O error occurs
-