Class PsZipUtils

java.lang.Object
eu.isas.peptideshaker.utils.PsZipUtils

public class PsZipUtils extends Object
This class contains information and methods to zip and unzip files from PeptideShaker. Files will be unzipped to a folder constructed based on the static fields: unzipParentFolder/unzipSubFolder/yourfolder_tempFolderName
Author:
Marc Vaudel
  • Field Details

    • UNZIP_SUB_FOLDER

      public static final String UNZIP_SUB_FOLDER
      The sub folder where the unzipped files should be stored.
      See Also:
    • TEMP_FOLDER_NAME

      public static final String TEMP_FOLDER_NAME
      Suffix for folders where the content of zip files should be extracted.
      See Also:
  • Constructor Details

    • PsZipUtils

      public PsZipUtils()
  • Method Details

    • getUnzipParentFolder

      public static String getUnzipParentFolder()
      Returns the parent folder where to unzip files. Null if not set.
      Returns:
      the parent folder where to unzip files.
    • getUnzipSubFolder

      public static String getUnzipSubFolder()
      Returns the sub-folder where to unzip files. Null if not set.
      Returns:
      the sub-folder where to unzip files
    • setUnzipParentFolder

      public static void setUnzipParentFolder(String newFolder)
      Sets the parent folder where to unzip files to.
      Parameters:
      newFolder - the parent folder where to unzip files to
    • getTempFolderName

      public static String getTempFolderName(String fileName)
      Returns the temp folder name to use when unzipping a zip file.
      Parameters:
      fileName - the name of the zip file
      Returns:
      the folder name associated to the zip file