Package com.powsybl.commons.compress
Class ZipHelper
java.lang.Object
com.powsybl.commons.compress.ZipHelper
Deprecated.
- Author:
- Yichen TANG <yichen.tang at rte-france.com>
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
archiveFilesToZipBytes
(Path workingDir, String... fileNames) Deprecated.static byte[]
archiveFilesToZipBytes
(Path baseDir, List<String> fileNames) Deprecated.UseZipPackager.archiveFilesToZipBytes(Path, List)
instead.
-
Method Details
-
archiveFilesToZipBytes
Deprecated.UseZipPackager.archiveFilesToZipBytes(Path, List)
instead.If the file is in .gz(detected by last 3 characters) format, the method decompresses .gz file first.- Parameters:
baseDir
- the base directory contaions files to zipfileNames
- the files to be added in zip- Returns:
- bytes in zip format
-
archiveFilesToZipBytes
Deprecated.
-
ZipPackager
instead.