Package com.powsybl.commons.compress
Class ZipHelper
- java.lang.Object
-
- com.powsybl.commons.compress.ZipHelper
-
@Deprecated public final class ZipHelper extends Object
Deprecated.UseZipPackager
instead.- Author:
- Yichen TANG
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static byte[]
archiveFilesToZipBytes(Path workingDir, String... fileNames)
Deprecated.static byte[]
archiveFilesToZipBytes(Path baseDir, List<String> fileNames)
Deprecated.UseZipPackager.archiveFilesToZipBytes(Path, List)
instead.
-
-
-
Method Detail
-
archiveFilesToZipBytes
@Deprecated public static byte[] archiveFilesToZipBytes(Path baseDir, List<String> fileNames)
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
-
-