Class ZipUtils
java.lang.Object
fr.enedis.chutney.server.core.domain.tools.ZipUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcompressDirectoryToZipfile(Path rootDir, Path sourceDir, ZipOutputStream out) static voidcompressFile(File file, String zipEntityName, ZipOutputStream out)
-
Constructor Details
-
ZipUtils
public ZipUtils()
-
-
Method Details
-
compressFile
public static void compressFile(File file, String zipEntityName, ZipOutputStream out) throws IOException - Throws:
IOException
-
compressDirectoryToZipfile
public static void compressDirectoryToZipfile(Path rootDir, Path sourceDir, ZipOutputStream out) throws IOException - Throws:
IOException
-