Class ZipHelper

java.lang.Object
com.powsybl.commons.compress.ZipHelper

@Deprecated(since="2.6.0") public final class ZipHelper extends Object
Deprecated.
Use ZipPackager instead.
Author:
Yichen TANG <yichen.tang at rte-france.com>
  • Method Details

    • archiveFilesToZipBytes

      @Deprecated public static byte[] archiveFilesToZipBytes(Path baseDir, List<String> fileNames)
      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 zip
      fileNames - the files to be added in zip
      Returns:
      bytes in zip format
    • archiveFilesToZipBytes

      public static byte[] archiveFilesToZipBytes(Path workingDir, String... fileNames)
      Deprecated.