Class ZipHelper

    • Method Detail

      • 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.